Blog Post

Controlling Visibility According to Site Version

Every KnowledgeKube site has a setting that designates it as either a Live site or a Preview one. You can now wrap markup in one of two new wrap-around elements that stop it rendering depending on the type of site it exists on.

For example, if you have a paragraph of text that should only appear on Preview sites - including KnowledgeKube's own Form Preview window - you should wrap it in a ISRELEASEVERSION element, as demonstrated below:

    <p>This paragraph will only appear on Preview sites.</p>
<%= %>


On the other hand, if you want the text to appear on any type of site except Preview, you will need to swap the tag for an ISNOTRELEASEVERSION one, like this:

    <p>This paragraph will not appear on Preview sites.</p>
<%= %>


In either case, swapping Preview for Live in the tag's header will change its behaviour accordingly.

Posted on 21 June 2017

Two new wrap-around element tags let you conditionally hide content on either Live or Preview sites.

Blog post currently doesn't have any comments.
 Security code