<Placeholder>


Published: March 13, 2022

Updated: January 3, 2026

Created: February 15, 2026

 

The <Placeholder> option is used to perform global replacement. By default, placeholders overwrite any previously defined placeholders with the same name. If you want to append an existing placeholder, use the <PlaceholderAppend> property. Once a placeholder has been defined, all occurances of that placeholder in any configuration property or page content will be replaced authomatically.

Example

<Placeholder>       <Find> $SERVER$ </Find> <Replace> /home/site/dbs                </Replace> </Placeholder>
<Placeholder>       <Find> $DOMAIN$ </Find> <Replace> https://domain.com/site/      </Replace> </Placeholder>
  
<Placeholder>       <Find> $KEYWORD$ </Find> <Replace> Blog                          </Replace> </Placeholder>
<PlaceholderAppend> <Find> $KEYWORD$ </Find> <Replace> , Website                     </Replace> </PlaceholderAppend>
  
<Placeholder>       
  <Head>    https://myplace.com/private/images </Head>
  <Tail>    x1024.png                          </Tail>
  <Replace> https://myplace.com/404.png        </Replace> 
</Placeholder>

Options

<Placeholder>
This tag indicates the start of new placeholder.
<Find>
[ ]
This is the text to find.
<Head>
[ ]
This is the beginning of a string of text to replace.
<Tail>
[ ]
This is the end of the string of text to replace.
<Replace>
[ ]
This is the replacement text.
<PlaceholderAppend>
This tag indicates the start of an existing placeholder.
<Find>
[ ]
This is the text to find. If the placeholder does not already exist, a new one will be created.
<Replace>
[ ]
This is the text to append to a placeholder.
Comments