WebBasic CMS
References

where

display block on a condition

If the condition contained in the where statement is not met, then the block content is not displayed.

Example:

<div id="homeBanner" data-wb-role="where" data=' id = "home" '> 
  <!-- where item id is "home" we are see block #homeBanner --> 
  <img src="/assets/img/banner.gif"> 
<div> 

Example:

<h2>List of active pages</h2> 
<ul data-wb-role="foreach" data-wb-table="pages" > 
    <li data-wb-role="where" data='active = "on" '>{{id}} - {{header}}</li> 
</ul>

Control attributes

data-wb-role
instruction name - where
data
a condition in which the displayed block