Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Santhosh Reddy
How to maximize a portlet through hook
February 3, 2013 11:00 PM
Answer

Santhosh Reddy

Rank: New Member

Posts: 15

Join Date: October 31, 2012

Recent Posts

Hi

I am using Liferays "recently downloaded" portllet in liferay 6.1 ee. i wrote on hook for that, it shows by default 5 recent downloaded documents.
once i click "see all button" portlet shoud be maximized and it should show 10 results per page with pagination. I an not able to maximize the portlet.
any idea regarding this is highly appreciated.

thanks,
santhosh
Samuel Kong
RE: How to maximize a portlet through hook
February 3, 2013 11:45 PM
Answer

Samuel Kong

LIFERAY STAFF

Rank: Liferay Master

Posts: 957

Join Date: March 10, 2008

Recent Posts

For your portletURL for your "see all button", add the following:

1portletURL.setWindowState(WindowState.MAXIMIZED)


or

1<portlet:renderURL windowState="<%= WindowState.MAXIMIZED.toString() %>" />