Fórumok
How to use liferay tag libs in Liferay Web content FTL templates.
Meera Prince, módosítva 8 év-val korábban
How to use liferay tag libs in Liferay Web content FTL templates.
Liferay Legend Bejegyzések: 1111 Csatlakozás dátuma: 2011.02.08. Legújabb bejegyzések
How to use liferay tag libs in Liferay Web content FTL templates.
I have used on following code in the wcm ftl template but I got following error,
Code in web content FTL templates
<#assign aui = PortletJspTagLibs["/META-INF/aui.tld"] />
<#assign liferay_theme = PortletJspTagLibs["/META-INF/liferay-theme.tld"] />
<#assign liferay_ui = PortletJspTagLibs["/META-INF/liferay-ui.tld"] />
<#assign portlet = PortletJspTagLibs["/META-INF/liferay-portlet.tld"] />
Expression PortletJspTagLibs is undefined on line 1, column 16 in 10155#10195#15409.
1<#assign aui = PortletJspTagLibs["/META-INF/aui.tld"] />
2<#assign liferay_theme = PortletJspTagLibs["/META-INF/liferay-theme.tld"] />
3<#assign liferay_ui = PortletJspTagLibs["/META-INF/liferay-ui.tld"] />
4<#assign portlet = PortletJspTagLibs["/META-INF/liferay-portlet.tld"] />
I have used on following code in the wcm ftl template but I got following error,
Code in web content FTL templates
<#assign aui = PortletJspTagLibs["/META-INF/aui.tld"] />
<#assign liferay_theme = PortletJspTagLibs["/META-INF/liferay-theme.tld"] />
<#assign liferay_ui = PortletJspTagLibs["/META-INF/liferay-ui.tld"] />
<#assign portlet = PortletJspTagLibs["/META-INF/liferay-portlet.tld"] />
Expression PortletJspTagLibs is undefined on line 1, column 16 in 10155#10195#15409.
1<#assign aui = PortletJspTagLibs["/META-INF/aui.tld"] />
2<#assign liferay_theme = PortletJspTagLibs["/META-INF/liferay-theme.tld"] />
3<#assign liferay_ui = PortletJspTagLibs["/META-INF/liferay-ui.tld"] />
4<#assign portlet = PortletJspTagLibs["/META-INF/liferay-portlet.tld"] />
James Falkner, módosítva 8 év-val korábban
RE: How to use liferay tag libs in Liferay Web content FTL templates.
Liferay Legend Bejegyzések: 1399 Csatlakozás dátuma: 2010.09.17. Legújabb bejegyzések
Not possible (see my comment and Eduardo's follow-up on his blog post).
Injecting the taglibs is a somewhat expensive operation, and web content is used far more than ADTs (at least for now!) so I assume that's why they weren't added to web content template contexts..
Injecting the taglibs is a somewhat expensive operation, and web content is used far more than ADTs (at least for now!) so I assume that's why they weren't added to web content template contexts..
Meera Prince, módosítva 8 év-val korábban
RE: How to use liferay tag libs in Liferay Web content FTL templates.
Liferay Legend Bejegyzések: 1111 Csatlakozás dátuma: 2011.02.08. Legújabb bejegyzések
Hi James Thank you very much.
I have used following syntax in Asset Publisher ADT but i could not succeeded i am getting following error.
FTL Code
<#assign aui = PortletJspTagLibs["/META-INF/aui.tld"] />
<#assign liferay_theme = PortletJspTagLibs["/META-INF/liferay-theme.tld"] />
<#assign liferay_ui = PortletJspTagLibs["/META-INF/liferay-ui.tld"] />
<#assign portlet = PortletJspTagLibs["/META-INF/liferay-portlet.tld"] />
ERROR Message
Expression PortletJspTagLibs is undefined on line 1, column 16 in 10155#10195#15402.
The following syntax is working fine
<#assign aui = taglibLiferayHash["/WEB-INF/tld/aui.tld"] />
<#assign liferay_portlet = taglibLiferayHash["/WEB-INF/tld/liferay-portlet.tld"] />
<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] />
I have used following syntax in Asset Publisher ADT but i could not succeeded i am getting following error.
FTL Code
<#assign aui = PortletJspTagLibs["/META-INF/aui.tld"] />
<#assign liferay_theme = PortletJspTagLibs["/META-INF/liferay-theme.tld"] />
<#assign liferay_ui = PortletJspTagLibs["/META-INF/liferay-ui.tld"] />
<#assign portlet = PortletJspTagLibs["/META-INF/liferay-portlet.tld"] />
ERROR Message
Expression PortletJspTagLibs is undefined on line 1, column 16 in 10155#10195#15402.
The following syntax is working fine
<#assign aui = taglibLiferayHash["/WEB-INF/tld/aui.tld"] />
<#assign liferay_portlet = taglibLiferayHash["/WEB-INF/tld/liferay-portlet.tld"] />
<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] />
Andew Jardine, módosítva 8 év-val korábban
RE: How to use liferay tag libs in Liferay Web content FTL templates.
Liferay Legend Bejegyzések: 2416 Csatlakozás dátuma: 2010.12.22. Legújabb bejegyzések
Hey James,
Quick question regarding part of your reply.
For those of us that are so excited about ADTs that we want to promote their usage as much as possible, is there a recommendation on how that expense can be offset? Can we use caching to limit the expense to first time out the gate?
Quick question regarding part of your reply.
Injecting the taglibs is a somewhat expensive operation...
For those of us that are so excited about ADTs that we want to promote their usage as much as possible, is there a recommendation on how that expense can be offset? Can we use caching to limit the expense to first time out the gate?