掲示板

How to get the url to another portlet

13年前 に Sid L によって更新されました。

How to get the url to another portlet

Junior Member 投稿: 28 参加年月日: 10/12/03 最新の投稿
I have 2 portlets portlet A and portlet B. portlet A resides on page A. What I want to achieve is on clicking on a link on page A I need to render the portlet b in an iframe.

How do I get the url of portlet B in portlet A?
thumbnail
13年前 に Thiago Leão Moreira によって更新されました。

RE: How to get the url to another portlet

Liferay Legend 投稿: 1449 参加年月日: 07/10/10 最新の投稿
You can use the tag liferay-portlet:renderURL for achieve this:

<liferay-portlet:renderurl portletName="portletB" />

Keep in mind that the portletName value must match exactly the name of the portlet. You can obtain it from source code of a page where the portlet is on it and have a format like "portletB_WAR_portletBportlet"

Hope this helps
11年前 に Randeep Kaur によって更新されました。

RE: How to get the url to another portlet

New Member 投稿: 1 参加年月日: 13/01/18 最新の投稿
You can achieve ths using renderURL tag .

<liferay-portlet:renderURL portletName="portletB"/>
11年前 に Rahul Sharma によって更新されました。

RE: How to get the url to another portlet

Junior Member 投稿: 59 参加年月日: 12/01/11 最新の投稿
You can also use the "sharing" url of the portlet B and then display it by the use of css or the java code.

Hope that helps!
thumbnail
11年前 に Jitendra Rajput によって更新されました。

RE: How to get the url to another portlet

Liferay Master 投稿: 875 参加年月日: 11/01/07 最新の投稿
You can also get URL for portlet reside on anther page using PortletURLFactoryUtil.