Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Aaron Paxson
Why are Recent Assets forced to open Maximized?
January 14, 2013 6:15 PM
Answer

Aaron Paxson

Rank: Regular Member

Posts: 103

Join Date: July 27, 2010

Recent Posts

When clicking on links that are generated from the Related Assets from the Knowledgebase Portlet, all content is maximized. Under the getURL() method:

 1com.liferay.knowledgebase.admin.util.KBArticleAssetEntriesUtil.getUrl() {
 2   ...
 3   ...
 4   portletURL.setWindowState(WindowState.MAXIMIZED);
 5   portletURL.setPortletMode(PortletMode.VIEW);
 6
 7   portletURL.setParameter("returnToFullPageURL", currentURL);
 8
 9   return portletURL.toString();
10}


2 Questions:

1). Why force it in code?
2). How can we override?

Thanks!
Aaron Paxson
RE: Why are Recent Assets forced to open Maximized?
January 17, 2013 2:28 PM
Answer

Aaron Paxson

Rank: Regular Member

Posts: 103

Join Date: July 27, 2010

Recent Posts

Cross-Posted into the Development forum. In hindsight, this may not have been the best place for this post: http://www.liferay.com/community/forums/-/message_boards/message/20784061