【问题标题】:liferay 7 web content template vm serviceLocator not workliferay 7 web 内容模板 vm serviceLocator 不起作用
【发布时间】:2017-11-17 11:10:35
【问题描述】:

我使用 vm 为 Web 内容创建了一个模板。但是 serviceLocator 不起作用。 我加了

    journal.template.velocity.restricted.variables=

到我的 portal-ext.properties 文件,但它没有帮助。

我没有在原始 portal.properties 文件中找到 journal.template.velocity.restricted.variables 属性。

如何让 serviceLocator 工作?

【问题讨论】:

    标签: templates velocity liferay-7 service-locator web-content


    【解决方案1】:

    我想你在找velocity.engine.restricted.variables=

    另外,请注意,Velocity 并不是未来的最佳选择,FreeMarker 会是更好的选择。

    【讨论】:

    • 为什么说 FM 比 Velocity 更好?
    • 对我来说,杀手级功能是使用 java 标签库的选项,让您的生活更轻松。该产品支持两种语言,但我认为它更倾向于 FM。
    猜你喜欢
    • 2017-11-07
    • 1970-01-01
    • 1970-01-01
    • 2013-08-30
    • 2015-02-21
    • 1970-01-01
    • 1970-01-01
    • 2011-12-31
    • 1970-01-01
    相关资源
    最近更新 更多