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
RE: Instance ID of a theme embedded portlet
The portlet is added in the theme like this:
<@liferay_portlet["runtime"] instanceId="portlet-id-12345"
portletName="name-of-the-portlet" />since the instance Id is hard coded in the theme , all the instances of the portlet has the same instance Id. Therefore, we can't add different portlet instance configurations on different pages. How to manage instance Id on embedded portlets so that it will be always same for a portlet instance but different on other pages.? Same behavior as of other portlets added directly on to the pages.
Hi Vishnu,
You can give the layout plid as the instance id while embedding the portlet. This way every page will have a different instance Id.HTH!
You can give the layout plid as the instance id while embedding the portlet. This way every page will have a different instance Id.HTH!
Worked like a charm. Thanks