MODX - Template variable that hides post author when checked -
so using add-on articles create press release section on site. need create template variable check box , if checked not show post author:
[[*publishedby:userinfo=`username`]] what best way me this.
if checkbox tv input option value "hide==1" use output filter this:
[[*your_tv:ne=`1`:then=`[[*publishedby:userinfo=`username`]]`]]
Comments
Post a Comment