Appendix: Changing Content Visibility Based on Release Version
You can conditionally control a page's content based on the value assigned to its release flag. For a given page, this value will be one of the following: Beta, Debug, Development, Engineering, Live, Preview, Test, UAT, Unknown.
Unless specifically configured otherwise, pages served via KnowledgeKube Content Delivery will be flagged as Live.
The ISRELEASEVERSION wrap-around element will only process its contents if the page's flag matches the one specified in the element's tag. The tag uses the following syntax:
<%= ISRELEASEVERSION(Flag)%>
...content to process...
<%= %>
In the following example, the ISRELEASEVERSION element will show a paragraph of text when viewed on a live site:
<%= ISRELEASEVERSION(Live)%>
<p>Welcome to the live version of our website!</p>
<%= %>
A second tag, ISNOTRELEASEVERSION, has the opposite effect of the one described above. In the following example, as long as the element is viewed on a non-live site, a paragraph of text will be displayed:
<%= ISNOTRELEASEVERSION(Live)%>
<p>This is demo content not intended for a live release of the site.</p>
<%= %>