论坛

主页 » Liferay Portal » English » 3. Development

组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Aaron Paxson
Why are Recent Assets forced to open Maximized?
2013年1月17日 下午2:30
答复

Aaron Paxson

等级: Regular Member

帖子: 103

加入日期: 2010年7月27日

最近的帖子

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:

 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?

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!
Aaron Paxson
RE: Why are Recent Assets forced to open Maximized?
2013年5月2日 下午2:57
答复

Aaron Paxson

等级: Regular Member

帖子: 103

加入日期: 2010年7月27日

最近的帖子

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.