在Liferay中,是否可以使用Freemarker模板语言将portlet嵌入到portlets (而不是主题)中?我需要基于某些查询字符串或会话动态地包含portlet。
我在“速度世界”中看到,他们这样做:
<div id="...">
<runtime-portlet name="..." instance="..." queryString="..."/>
</div>我也尝试过这种方法,但是我得到"Expression是未定义的“错误。
${theme.runtime("portlet-id")}我见过使用iframe的解决方案,但我不太喜欢它。
我的环境:
任何帮助或指示都会得到真正的认可。
发布于 2015-06-16 12:03:12
请参阅下面的链接,您需要使用附加参数修改$theme.runtime()方法。
https://www.liferay.com/community/wiki/-/wiki/Main/Embedding+a+portlet+in+the+theme
https://stackoverflow.com/questions/28276657
复制相似问题