留言板

Why are Recent Assets forced to open Maximized?

thumbnail
Aaron Paxson,修改在11 年前。

Why are Recent Assets forced to open Maximized?

Regular Member 帖子: 102 加入日期: 10-7-28 最近的帖子
I'm sorry. I'm cross-posting this, since I realized I may have posted this to the wrong forum:


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

com.liferay.knowledgebase.admin.util.KBArticleAssetEntriesUtil.getUrl() {
   ...
   ...
   portletURL.setWindowState(WindowState.MAXIMIZED);
   portletURL.setPortletMode(PortletMode.VIEW);

   portletURL.setParameter("returnToFullPageURL", currentURL);

   return portletURL.toString();
}


2 Questions:

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

My problem is that I"m using it as kind of a "latest status" of my site (http://myteneo.net). But, when clicking on the links, it forces maximized, and I don't get my ads or additional portlets displayed.

Thanks!
thumbnail
Aaron Paxson,修改在10 年前。

RE: Why are Recent Assets forced to open Maximized?

Regular Member 帖子: 102 加入日期: 10-7-28 最近的帖子
So, other than changing the code, there is not any other way? Either that, or no one really needs this functionality?

The problem is, it bypasses my ads and other content on the page.