#e61919
Support Staff
224482
0
1
Apr 23, 2024 17:06:30 GMT -8
Scott
23,276
August 2015
socalso
|
Post by Scott on May 23, 2017 12:17:56 GMT -8
Boy_Wonder , I received this back from a dev: Zones cant and wont be able to be inserted into an "if" block (conditional), we're not changing how that works and its not a bug, but a design decision that comes with having the visual editor available - if you do {if guest} [zone] {/if} - what happens to the zone when you are on the visual editor? it just wont be able to appear most likely, you'll never be able to sync them up. The trick that could be used is something like this: <div class="zone-2">$[zone_2]</div>
{if $[current_user.is_member]} <style> .zone-2 { display: none; } </style> {/if} Voila, the zone is hidden for members, but proceed at your own caution, because these elements will never appear in the visual editor now (since you are a "member" editing the page - the element gets hidden and unbound) The same trick can be used with any of the other variables ----------------------------------
|
|