Cannot display category by "liferay-display.xml" - liferay-7

I try to create a simple Spring mvc example in liferay 7, and when i add my portlet in liferay-display.xml, but in application menu, my portlet is not display, please help me in this case.
Thanks
portlet.xml
liferay-display.xml

Remove a display-name in the portlet
<portlet>
<portlet-name>example</portlet-name>
</portlet>

If you follow the portlet setup wizard in the IDE then you would not experience this. How ever if you do it is most important to register the portlet in portlet.xml
The liferay-display.xml only defines the front end display name and format for the portlet presentation.
I hope this helps!

Related

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.

Hows tags work in liferay?

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.

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.

How to convert Wicket application into Wicket Portlet application?

I have a complicated Apache Wicket application.I want to convert that application as a Wicket Portlet application. I got some information from https://cwiki.apache.org/WICKET/portal-howto.html. But doesnt so clear . So wanted to know the simple steps to convert an wicket Application into Wicket Portlet Application
I have done the exact opposite of you, I converted a lot of Wicket Portlet to a single Wicket Application. What portlet container are you going to use ? What Wicket version are you using ? I think Portlet support has been dropped in 1.5, so be warned that you will be stuck with 1.4 unless you provide your patches. The Wiki page you're talking explains everything you have to know. I suggest you try an hello-world before converting your application.

How to Hide/view the portlets in liferay Portal?

I m developing portlets on liferay portal using icefaces, i want to hide/view the portlet programmaticaly from an action written in my managed bean.
so please help me ASAP?
Thanks in advance...
You can invoke the method
ActionResponse.setWindowState(WindowState.MINIMIZED) from an action of your portlets.
When talking about actions, I am referring to the ActionResponse and EventResponse classes of the portlets API.
I have done something similar. If there is no data found on the portlet I usually hide it. I have check box in preference, I enable that only when needed.
https://dev.liferay.com/de/develop/tutorials/-/knowledge_base/6-1/implementing-configurable-portlet-preferences