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

Popular posts from this blog

linux - Could not find a package configuration file provided by "Qt5Svg" -

simple.odata.client - Simple OData Client Unlink -