Forums

Home » Liferay Portal » English » Liferay Legacy »

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Giuseppe Cera
Url portlet
October 17, 2007 12:06 PM
Answer

Giuseppe Cera

Rank: New Member

Posts: 8

Join Date: October 12, 2007

Recent Posts

It's possible to define or to get an URL associated to a portlet in order to redirect the itself portlet from an external site?
Bob Jolliffe
RE: Url portlet
October 17, 2007 12:48 PM
Answer

Bob Jolliffe

Rank: New Member

Posts: 8

Join Date: October 17, 2007

Recent Posts

Hi Guiseppe

If I understand you correctly, then I think the iFrame portlet will do the trick.

Bob
Roman Hoyenko
RE: Url portlet
October 18, 2007 11:25 AM
Answer

Roman Hoyenko

Rank: Liferay Master

Posts: 867

Join Date: October 8, 2007

Recent Posts

I don't quite understand what are you trying to do. Do you want to display a portlet on external website?
Do you just want to display a portlet or a whole Liferay interface?

Thanks,
Roman
Giuseppe Cera
RE: Url portlet
October 20, 2007 2:56 PM
Answer

Giuseppe Cera

Rank: New Member

Posts: 8

Join Date: October 12, 2007

Recent Posts

Thanks for the attention Roman!

I have two problems:

1)I want to call the portlet from a server with an url in order to send some parameters.
My problem is to find an url defines the portlet.

2)I must call a portlet from a page of portal contains the portlet itself

Thanks.
Christoph H.
RE: Url portlet
October 22, 2007 4:32 AM
Answer

Christoph H.

Rank: Regular Member

Posts: 147

Join Date: July 31, 2007

Recent Posts

Giuseppe Cera:
Thanks for the attention Roman!

I have two problems:

1)I want to call the portlet from a server with an url in order to send some parameters.
My problem is to find an url defines the portlet.



PortletURL actionURL = renderResponse.createActionURL();


Does that help you?

Giuseppe Cera:

2)I must call a portlet from a page of portal contains the portlet itself

Thanks.


See the actionURL-Tag:
<a href="<portlet:actionURL>
<portlet:param name="struts_action" value="/ext/helloworldportlet/update_layout" />
<portlet:param name="<%=ActionConstants.CMD %>" value="<%=ActionConstants.MINIMIZE %>" />
<portlet:param name="portletid" value="EXT_HELLOWORLDPORTLET2" />
</portlet:actionURL>">minimize it</a>.


With the portletid Parameter you can reference another portlet.
Giuseppe Cera
RE: Url portlet
October 22, 2007 12:01 PM
Answer

Giuseppe Cera

Rank: New Member

Posts: 8

Join Date: October 12, 2007

Recent Posts

I used:

<a href="<liferay:actionURL windowState='maximized' portletMode='view'>
<liferay:param name='portletid' value='id_of_portlet' />
</liferay:actionURL>">minimize it</a>

but I get an URL of the portlet where I wrote these instructions and not the URL of "id_of_portlet".
Christoph H.
RE: Url portlet
October 22, 2007 11:38 PM
Answer

Christoph H.

Rank: Regular Member

Posts: 147

Join Date: July 31, 2007

Recent Posts

Giuseppe Cera:
I used:

<a href="<liferay:actionURL windowState='maximized' portletMode='view'>
<liferay:param name='portletid' value='id_of_portlet' />
</liferay:actionURL>">minimize it</a>

but I get an URL of the portlet where I wrote these instructions and not the URL of "id_of_portlet".


With the struts_action parameter (see my example) you can set which portlet you are adressing.

What my Layoutportlet does is the following (i.e. removing a portlet):
String portletId = req.getParameter("portletid");
            if (portletId != null) {
                Layout layout = (Layout)req.getAttribute(WebKeys.LAYOUT);
                LayoutTypePortlet layoutTypePortlet = (LayoutTypePortlet)layout.getLayoutType();
                layoutTypePortlet.removePortletId(portletId);
            }
prit k
RE: Url portlet
August 19, 2008 4:46 PM
Answer

prit k

Rank: New Member

Posts: 11

Join Date: August 19, 2008

Recent Posts

Hi,
I find it difficult to dynamically redirect to the appropriate portlet page on the click of a URL which is in a portlet.
Suppose if you click of a url in a portlet A and would like to show that link's details in another portlet B which is in another page, would you hard code that page ? Else how would this portlet A know where the portlet B is?
And if there are more instances , would all portlets be showing the contents ?
I don't understand and would like to know how to do that. Any piece of code is appreciated.

Thanks
Prit
Rajendra Mhetre
RE: Url portlet
March 4, 2011 6:01 AM
Answer

Rajendra Mhetre

Rank: New Member

Posts: 5

Join Date: February 17, 2010

Recent Posts

Hi,
Anyone found the solution for this issue as I am having the same requirement.

1. Is it possible to call the portlet using its RenderURL.?
2. And how we can know the RenderURL for another portlet which resides in the another page.
3. Creating separate page for each Create,View,Modify actions is a proper way? or is there any other approaches?

We are facing problem to link Create, View, Modify modes specially when these actions are trigged from other pages.

Thanks