Using Markers in Page Templates
Another powerful feature for capturing text within your source content is through the use of markers. Within your authoring environment you can insert markers that have a name and value. Then in your page templates, you can access the value of these markers by their name. The page template will use the last encountered maker within the scope of the generated page of your output.
To implement this functionality in your page template file, use the syntax: wwmarker:<Marker_Name>.
For example, if you used a marker called: Reviewer the following is syntax that could be used in the page template file to capture the value.
<div wwpage:condition="wwmarker:Reviewer" wwpage:content="wwmarker:Reviewer">
Reviewer name appears here, if marker is available.
Was this helpful?
Last modified date: 11/30/2021