【发布时间】:2017-04-01 11:08:42
【问题描述】:
所以我正在使用附加文章在我的网站上创建一个新闻稿部分。我需要创建一个作为复选框的模板变量,如果选中,它将不会显示帖子作者:
[[*publishedby:userinfo=`username`]]
对我来说最好的方法是什么。
【问题讨论】:
标签: modx modx-revolution modx-templates
所以我正在使用附加文章在我的网站上创建一个新闻稿部分。我需要创建一个作为复选框的模板变量,如果选中,它将不会显示帖子作者:
[[*publishedby:userinfo=`username`]]
对我来说最好的方法是什么。
【问题讨论】:
标签: modx modx-revolution modx-templates
如果您的复选框电视输入选项值如“Hide==1”,则使用output filter,如下所示:
[[*your_tv:ne=`1`:then=`[[*publishedby:userinfo=`username`]]`]]
【讨论】: