【问题标题】:ModX getResources template not receiving TVsModX getResources 模板不接收电视
【发布时间】:2012-10-27 09:17:08
【问题描述】:

我有以下 getResources 行:

[[!getResources? &parents=`5` &tpl=`projlink` ]]

然后在我用作模板(projlink)的块中,我有:

<div class="projname">[[+pagetitle]]</div>
<div class="projinfo">[[+tv.projinfo]]</div>

现在页面标题显示正常,但电视显示不正常。

当然,我已经检查了检索到的资源确实具有具有projinfo TV 的模板,这一切都很好。我只是不知道发生了什么——这一切对我来说似乎都是正确的。任何人都可以帮助我吗?

【问题讨论】:

    标签: templates modx modx-revolution television getresource


    【解决方案1】:

    使用includeTVs 标志。

    [[!getResources? &parents=`5` &tpl=`projlink` &includeTVs=`1` ]]
    

    【讨论】:

    • 根据电视的内容,您可能还必须使用 &processTVs。具体案例请参考文档
    猜你喜欢
    • 2011-06-19
    • 2016-05-05
    • 2015-07-06
    • 1970-01-01
    • 2021-04-25
    • 2018-04-10
    • 2016-01-16
    • 2019-07-30
    • 2013-09-29
    相关资源
    最近更新 更多