Controlling Visibility According to Site Version

Posted on 21 June 2017
A staggering 96% of those surveyed by application platform, KnowledgeKube, identified that more than a quarter of their processes were inefficient.

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:

<%= ISRELEASEVERSION(Preview) %>
    <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:

<%= ISNOTRELEASEVERSION(Preview) %>
    <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: 21/06/2017 00:00:00 by Andrea Lantos | with 0 comments


Comments
Blog post currently doesn't have any comments.