How to get plid of specific portlet In Liferay velocity template -
I am developing MVC portlet
and specific through the menu link through your portlet Want to open the page? In velocity template I have the portlet name of my portlet
How can I get the plid of that portlet
My code is as below:.? #set ($ my_name = $ portletURLFactory.create ($ request, "portletname_WAR_portletnameportlet", $ getterUtil.) GetLong ($ plid), "RENDER_PHASE")) $ myURL .setParameter ("view", "methodName") // Controller parameters & lt; A href = "$ myURL" & gt; $ Nav_item.getName () & lt; / A & gt; #END
can add my parameters to its existing URL and remain on the current page.
I've added my portlet to a page and tried using hard-coded plid, it works fine, but it will create problems for different servers.
So, how can I get my portlets to use during the plid url in the VM file in the work time?
We have maintained something else in the configuration .. I would like to store some things in the portfolio preferences. Can give value .. Portlet priority portlet id in velocity .. then get plid.
Many times the portlet may have a place in many pages so that we can get many plids.
Use the same page name on all the pages based on the name of the page, Plid.
Comments
Post a Comment