【发布时间】:2011-08-12 09:45:24
【问题描述】:
我想为我的 Liferay 主题添加一个自定义的添加应用程序链接。
这是我在模板 (portlet_normal.vm) 中的内容:
#if($show_add_content)
<a href="javascript:$add_content_url" id="addApplications">$add_content_text</a>
<a href="javascript:$layout_url" id="layoutTemplates">$layout_text</a>
#end
这是我在页面上得到的:
<a href="javascript:Liferay.LayoutConfiguration.toggle('87');" id="addApplications">Add Application</a>
<a href="javascript:Liferay.LayoutConfiguration.showTemplates();" id="layoutTemplates">Layout Template</a>
布局按钮按预期工作,但未加载“添加应用程序”portlet。
我想缺少库/包含?有人有想法吗?
【问题讨论】:
-
不知道,但对必须处理 liferay 的任何人 +1...
-
@cwallenpoole 很好,如果你知道你必须在哪里打它...但有时它会非常猛烈地反击^^
标签: java themes liferay velocity