modX.setPlaceholder
Last updated Apr 21st, 2019 | Page history | Improve this page | Report an issue
modX::setPlaceholder¶
Sets a Placeholder value, corresponding to the "+" syntax.
Syntax¶
API Doc: modX::setPlaceholder()
void setPlaceholder (string $key, mixed $value)
Example¶
$modx->setPlaceholder('name','Barry');
This causes the placeholder [[+name]]
to be available inside your templates or page content.