modX.setPlaceholder

Skip to end of metadata
Go to start of metadata


modX::setPlaceholder

Sets a Placeholder value, corresponding to the "+" syntax.

Syntax

API Doc: http://api.modxcms.com/modx/modX.html#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.

See Also

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.