论坛

主页 » Liferay Portal » English » 3. Development

组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Jaber C. Mourad
liferay-ui:icon target attribute issue
2011年3月30日 上午6:09
答复

Jaber C. Mourad

等级: Junior Member

帖子: 69

加入日期: 2010年2月19日

最近的帖子

Hi,

I want to make some links targeting a new browser window (or tab !)...

I have hooked the document_library portlet modifying original links to go to target _blank window, for example in view_file_entry.jsp :
1
2<liferay-ui:icon
3                cssClass="lfr-asset-avatar"
4                image='<%= "../file_system/large/" + DLUtil.getGenericName(extension) %>'
5                message="download"
6                target="_blank"
7                url="<%= fileUrl %>"
8            />


It change the icon, displaying "open in new window" but when I click, there are no changes, if it is a pdf file, it is displayed in the same window !
I trying under chrome, firefox4 under linux and IE 8 under windows and the result is allwa the same !

Is there something I missed ?

Regards
Roberto Barchino
RE: liferay-ui:icon target attribute issue
2011年7月12日 上午7:10
答复

Roberto Barchino

等级: Junior Member

帖子: 26

加入日期: 2011年1月11日

最近的帖子

You can find a solution here:

http://jsumon.wordpress.com/2011/06/09/liferay-uiicon-target_blank-of-liferay6-0-5-not-open-link-page-in-new-tab/

Actually there are a lot of people with the same problem.



Roberto.