留言板

Add portlet dynamically to a page

Radivoje Nesovanovic,修改在12 年前。

Add portlet dynamically to a page

New Member 帖子: 2 加入日期: 10-6-8 最近的帖子
Hello to the Liferay community, this is my first post!
Of course I have a problem that I'd like to share with you.

I want to display a portlet on any page based on the url (in maximized window mode).
Then you could click on back to normal page to display the real page.

For example Edit page portlet is working like this (when used directly from a liferay page).
Also the sign in portlet.

I tried adding <add-default-resource>true</add-default-resource> in liferay-portlet.xml but didn't help.
Also tried different kinds of url with providing p_p_id and various other params.
Just to mention that displaying the portlet in maximized window state works when it's already added to normal page (of course).
So how to display a portlet without adding it to a page?
Radivoje Nesovanovic,修改在12 年前。

RE: Add portlet dynamically to a page

New Member 帖子: 2 加入日期: 10-6-8 最近的帖子
Since I couldn't find any other solution, ended up writing a custom proxy portlet that handles the links i need and adds pages and portlets.