google.com, pub-5747754088801811, DIRECT, f08c47fec0942fa0 Skip to main content

Get Portlet ID in Action Liferay

ThemeDisplay themeDisplay= (ThemeDisplay)renderRequest.getAttribute(WebKeys.THEME_DISPLAY); 

PortletDisplay portletDisplay= themeDisplay.getPortletDisplay(); 

 String portletId= portletDisplay.getId();

Comments

  1. Article utile pour moi... merci. Nous proposons les services Liferay Java et Liferay Angular . Pour obtenir des détails, contactez-nous

    ReplyDelete

Post a Comment

Popular posts from this blog

Disable cache content of browser access on back button after logout liferay dxp

Some time we have requirement where we do not want to allow back button after logout and show cached browser content. Liferay provide properties which with we are able to restrict to see content on back button after logout. If user click back button after logout it will show the login page. We require to provide below properties in portal-ext.properties. Restart the server once applying below properties browser.cache.signed.in.disabled=true

Embedded Language portlet in Theme.

I want to embedded liferay inbuilt portlet language in custom theme.We require to add just few line of codes in themes vm file in my case it is normal.vm file. Copy below content in the file where you want to embedded language portal. <div > $velocityPortletPreferences.setValue("portletSetupShowBorders", "false") $velocityPortletPreferences.setValue("languageIds", "pt_BR,en_US") $velocityPortletPreferences.setValue("displayStyle", "1") $theme.runtime("82", "", $velocityPortletPreferences.toString()) $velocityPortletPreferences.reset() </div>