Hows tags work in liferay? - tags

I am new to liferay and am a student. I need to develop a portlet in liferay that allows users to pick tags from the tag pool.
The portlet should look like this wiki-page, take a look at the Categorization section.
Can anyone suggest how to develop that?

Liferay is open source. Please download the portal source and have a look into the journal article portlet.
Hint : Please checkout the liferay-ui taglib. There is a tag called asset-tags-selector, just have that in your jsp and you will have tag selector in your portlet.

If you need to make it in "Liferay style", you have to implement your data object as an asset. See this Liferay Asset framework tutorial. In the section "Entering and displaying tags and categories" there is an example of <asset-tags-selector> that Felix suggested.
Otherwise you can try some javascript libraries. Google can help you with this.

Related

Can anyone show or give the download link for AEM / CQ5

i want learn the aem /cq5 so Can anyone show or give the download link for AEM / CQ5 please
AEM is a comercial product, you can have it either by working on a project that already bought Production licenses. or your employer is part of the Adobe partner program - SPP. Other way it will be either impossible or illegal :(
Though you would need a license to procure the Adobe product, there are options to learn & understand the basics:
just create an Adobe ID and download old CQ basics from here
-https://helpx.adobe.com/experience-manager/aem-previous-versions.html
if you have understood the very basics of AEM, then the runnable JAR from Apache sling - https://sling.apache.org/downloads.cgi would be very handy.
You can play around with this JAR (which comes with a built-in JCR repository where you can use the JCR API - the core of AEM)
please go ver the below before jump in to the JAR:
https://sling.apache.org/documentation.html
https://docs.adobe.com/docs/en/spec/jcr/2.0/2_Introduction.html
http://felix.apache.org/documentation/tutorials-examples-and-presentations/apache-felix-osgi-tutorial.html

How to update value of a field for all page in AEM?

I create a site with AEM (Adobe Experience Manager). I have a page type as property-page. The property-page have a field type "Number of event in a page". I want to modify the number of event for all property page.
How to do that?
Thank you & kind regards,
There is no mass-update feature in AEM. Ask your developers for support. They either write you a little tool. Or they could generate a lot of curl-requests based on a query. Another option would be the AEM Groovy Console (https://github.com/OlsonDigital/aem-groovy-console). There you or your developers could write a script.
Finally you can do it one by one manually. Take a look into crx/de, which might be a little bit faster.
If you want to bulk update the page property you may use OTB Bulk Editor feature. Here is a video explaining how to use this.
There is a similar ACS tool for updating sling:resourceType property. You can extend and customize this tool if not happy with OTB feature.

Integrate liferay cms into existing java application

I have an existing java web application, servlet based. I plan to add a module to show news articles to visitors. So i choose liferay as our CMS. The solution in my mind is that using an iframe in my web site to show news articles managed by liferay CMS. If i do so, is it convenient for our news editor to manage news articles with liferay CMS? Shall he/she switched to liferay to do this? It seems that the preview function of liferay CMS could guarantee only the inline iframe's visual effect is nice, am i right here?
Besides, could you please advise me a better solution other than iframe based solution?
I am looking forward for your comments, any help here would be appreciated!
Maybe it's better that liferay includes the existing Web app.

How to add CSS, Images to a page in CQ5?

I am creating a new template and then a page from SCRATCH in CQ5. But I can't find the option to add my own CSS/images/JS to the page.
I mean a place to add/upload the actual files.
All the tutorials I've seen talk only about creating a template based on an existing template. Is there any tutorial on how to create the page from scratch ?
Your CSS and JavaScript go into nodes under /etc/designs/[your project's name]/clientlibs. (Ordinarily, you would set the page property cq:designPath of your content's home page to be /etc/designs/[your project's name] to point to this.) It's common practice to set up a subfolder of clientlibs called default, where your general-purpose style sheets and JavaScript go; you can set up other clientlibs for special-case script and style sheets. The simplest way to incorporate your script and style sheets into your page template is the <cq:includeClientLib> JSP tag.
The Adobe docs on clientlibs will also be useful to you, and explains how to use the tag.
#David , thanks for your answer, but for now, I got a better way to add and then use external files using WebDAV with CQ5.
The basic integration of WebDAV with CQ5 application is mentioned in this page

Are there content "triggers" in Liferay CMS?

This could be a newbie question regarding Liferay - sorry for that:
Is there any chance to hook up the saving process in Liferay CMS?
E.g. we'd like to send content to a CDN and a separate NoSQL-database once it was stored in Liferay.
How can we achieve that? Any hint is highly appreciated.
I think a hook, either a ModelListener-hook for JournalArticle or a ServiceWrapper-hook on the methods that would save the web-content, should do the trick for you.
Or else if you don't want a real-time update you can always create a cron-job in liferay which would look in the specific database tables using Liferay API and do the work for you.