留言板
Portlet communication, between Asset Publisher and Web Content Display
Man V K,修改在13 年前。
Portlet communication, between Asset Publisher and Web Content Display
Regular Member 帖子: 138 加入日期: 07-12-4 最近的帖子
Hi,
I have two portlets on the same page, Asset Publisher and Web Content Display,
If i click the read more option in the Asset Publisher portlet i want to change the contents of webcontent display,
Please suggest the better solution,
Man.V.K
I have two portlets on the same page, Asset Publisher and Web Content Display,
If i click the read more option in the Asset Publisher portlet i want to change the contents of webcontent display,
Please suggest the better solution,
Man.V.K
Simon Gołębiewski,修改在13 年前。
RE: Portlet communication, between Asset Publisher and Web Content Displa
Regular Member 帖子: 246 加入日期: 09-6-8 最近的帖子
In the similar scenario we came up with different approach - we developed page for displaying full article. It's an ordinary page with asset and Web Content Display with option "hidden" enabled.
On our Home page we have asset publisher in which options we added special field "page to display" and "instance". First field tells on what to what page should this asset redirect user after clicking article link. Second field tells what portlet instance should be used to display this content (it's the instance of a asset publisher that we use on "full article page").
On our Home page we have asset publisher in which options we added special field "page to display" and "instance". First field tells on what to what page should this asset redirect user after clicking article link. Second field tells what portlet instance should be used to display this content (it's the instance of a asset publisher that we use on "full article page").
Philipp Michael,修改在13 年前。
RE: Portlet communication, between Asset Publisher and Web Content Displa
New Member 帖子: 22 加入日期: 11-1-19 最近的帖子Szymon Gołębiewski:
On our Home page we have asset publisher in which options we added special field "page to display" and "instance".
What do you mean by "in which options we added"? How can I add special field to configuration of the asset publisher?
Jonas X. Yuan,修改在13 年前。
RE: Portlet communication, between Asset Publisher and Web Content Displa
Liferay Master 帖子: 993 加入日期: 07-4-27 最近的帖子
Option 1) public-render-parameter
simple and fast way would be
"public-render-parameter".
Like:
Option 2) Shared by portlet page parameters
Hook Asset Publisher and add portlet URL of Web Content Display for "More" option.
Hope that it helps,
Thanks
Jonas Yuan
simple and fast way would be
"public-render-parameter".
Like:
<public-render-parameter>
<identifier>categoryId</identifier>
<qname xmlns:x="http://www.liferay.com/public-render-parameters">x:categoryId</qname>
</public-render-parameter>
<public-render-parameter>
<identifier>tag</identifier>
<qname xmlns:x="http://www.liferay.com/public-render-parameters">x:tag</qname>
</public-render-parameter>
Option 2) Shared by portlet page parameters
Hook Asset Publisher and add portlet URL of Web Content Display for "More" option.
Hope that it helps,
Thanks
Jonas Yuan
Philipp Michael,修改在13 年前。
RE: Portlet communication, between Asset Publisher and Web Content Displa
New Member 帖子: 22 加入日期: 11-1-19 最近的帖子
Ok, I used EXT Plugin to edit the public references. portlet-ext.xml now looks like this:
Anything wrong about this? How do I set the value of the parameters 'pageToDisplay' and 'instance'? And how do I use those parameters in the follow page to display the full article?
Thanks in advance.
Philipp
<!--?xml version="1.0"?-->
<portlet-app>
<portlet>
<portlet-name>101</portlet-name>
<display-name>Asset Publisher</display-name>
<portlet-class>com.liferay.portlet.StrutsPortlet</portlet-class>
<init-param>
<name>view-action</name>
<value>/asset_publisher/view</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<resource-bundle>com.liferay.portlet.StrutsResourceBundle</resource-bundle>
<security-role-ref>
<role-name>guest</role-name>
</security-role-ref>
<security-role-ref>
<role-name>power-user</role-name>
</security-role-ref>
<security-role-ref>
<role-name>user</role-name>
</security-role-ref>
<supported-public-render-parameter>pageToDisplay</supported-public-render-parameter>
<supported-public-render-parameter>instance</supported-public-render-parameter>
</portlet>
<public-render-parameter>
<identifier>pageToDisplay</identifier>
<qname xmlns:x="http://www.liferay.com/public-render-parameters">x:pageToDisplay</qname>
</public-render-parameter>
<public-render-parameter>
<identifier>instance</identifier>
<qname xmlns:x="http://www.liferay.com/public-render-parameters">x:instance</qname>
</public-render-parameter>
</portlet-app>
Anything wrong about this? How do I set the value of the parameters 'pageToDisplay' and 'instance'? And how do I use those parameters in the follow page to display the full article?
Thanks in advance.
Philipp
Alba García,修改在12 年前。
RE: Portlet communication, between Asset Publisher and Web Content Displa
Junior Member 帖子: 49 加入日期: 11-2-10 最近的帖子
Did you find how to
Thanks in advance
set the value of the parameters 'pageToDisplay' and 'instance'?
Thanks in advance