jrotering Reply #1, 1 year, 8 months ago
This must have something to do with the parse order or something.
:notempty seems to work fine for TVs and other elements, but not for placeholders. Is the placeholder value somehow empty at the time the filter is applied? Very confusing.
[[!setPlaceholders]] // $modx->setPlaceholder('siteCssOverride', '/path/to/override.css');
[[+siteCssOverride:default=`<link rel="stylesheet" href="[[+siteCssOverride]]" />`]] // this works, outputs <link> element
[[+siteCssOverride:notempty=`<link rel="stylesheet" href="[[+siteCssOverride]]" />`]]//this doesn't work; no ouput
:notempty seems to work fine for TVs and other elements, but not for placeholders. Is the placeholder value somehow empty at the time the filter is applied? Very confusing.