Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
custom portlet name in a custom theme dynamically
Hi,
how to get custom portlet name in a custom theme .
Liferay include portlet in themeConfigure the below statement in portal_normal.vm file
#set ($VOID = $velocityPortletPreferences.setValue('portletSetupShowBorders', 'false'))
#set ($portlet_id = 'Mention Your ID here')
#set ($my_portlet_id = "${portlet_id}_INSTANCE_1234")
$theme.runtime($my_portlet_id, "", $velocityPortletPreferences.toString())
$velocityPortletPreferences.reset()
ID Location---->Goto ControPanel->Plugins Configuration->Select your portlet and click->and copy Plugin ID and paste it in place of 'Mention Your ID here'If you want to call 2 custom portlet or other portlet you need to follow the same steps and change the INSTANCE_1234 to some other number like INSTANCE_5678 something not like this
i need custom portlet name into custom theme dynamically.
using liferay 7.x
Thank youRam
how to get custom portlet name in a custom theme .
Liferay include portlet in themeConfigure the below statement in portal_normal.vm file
#set ($VOID = $velocityPortletPreferences.setValue('portletSetupShowBorders', 'false'))
#set ($portlet_id = 'Mention Your ID here')
#set ($my_portlet_id = "${portlet_id}_INSTANCE_1234")
$theme.runtime($my_portlet_id, "", $velocityPortletPreferences.toString())
$velocityPortletPreferences.reset()
ID Location---->Goto ControPanel->Plugins Configuration->Select your portlet and click->and copy Plugin ID and paste it in place of 'Mention Your ID here'If you want to call 2 custom portlet or other portlet you need to follow the same steps and change the INSTANCE_1234 to some other number like INSTANCE_5678 something not like this
i need custom portlet name into custom theme dynamically.
using liferay 7.x
Thank youRam