Jump to main content Jump to doc navigation

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.

See Also