Hi,
how can I use a
I tried the solution from here: viewtopic.php?f=4&t=11219 but it doesn't work.
I have a checkbox to show or hide content.
and
Cheers
how can I use a
- Code: Select all
<cms:if>
I tried the solution from here: viewtopic.php?f=4&t=11219 but it doesn't work.
I have a checkbox to show or hide content.
- Code: Select all
<cms:editable name="show_book_de" label="Zeige Buch" desc="Zeigt das Buch auf der deutschen Webseite an wenn checkbox aktiv." opt_values='anzeigen' opt_selected = 'anzeigen' type='checkbox' />
and
- Code: Select all
<cms:if k_page_id != ignore_id>
<cms:set arr_selected='[]' is_json='1' scope='global' />
<cms:each show_book_de as='opt'>
<cms:set arr_selected. = opt scope='global' />
</cms:each>
<cms:if "<cms:arr_val_exists 'anzeigen' in=arr_selected />">
<div class="books_item aspect-square">
<a href="<cms:show k_page_link />">
<img class="w-full opacity-75 hover:opacity-100" src="<cms:show image/>"
alt="<cms:show k_page_title />"
title="<cms:show k_page_title />"
onMouseOver="this.src='<cms:show image_hover/>'"
onMouseOut="this.src='<cms:show image/>'"
>
</a>
</div>
</cms:if>
</cms:if>
Cheers