The Placeholder Set Name field defines the placeholders you will use to link to the pages generated by the Publish Rule. These are the standard placeholders:
- $published.PlaceholderSetName.url$
- $published.PlaceholderSetName.webpath$
- $published.PlaceholderSetName.filepath$
- $published.PlaceholderSetName.filename$
For example, if you entered a value of "articlePrinter" for Placeholder Set Name, you'd have the following placeholders available:
- $published.articlePrinter.url$
- $published.articlePrinter.webpath$
- $published.articlePrinter.filepath$
- $published.articlePrinter.filename$
So if you wanted to link to the printer friendly article pages, you could use the following code in your template:
<a href="$published.articlePrinter.url$">Printer Friendly Page</a>
Placeholder Suffixes
The different suffixes to the Publishing Rule Placeholders are used in different situations. Most users will make use of only url and webpath:
- url - Used for links, this is the full URL of the published page.
- webpath - Used for Server Side Includes, this is the path from the webroot to the generated page (the page's URL without the domain name).
- filepath - This is the server path to the generated page. Most sites won't need this placeholder (used primarily in scripting, such as PHP includes).
- filename - This publishes the filename. Note that if the Publishing Rule's "Filename" contains a folder, this placeholder will include that value.