Goodmorning everyone.
I'm facing a problem: I have a mosaic region, in which there are editable regions and a repeatable region, viewable through a conditional field. But when I fulfill the fields in the repeatable region and then I save, the changes are not being saved. This means that I neither see the data in the preview nor in the repeatable region when I re-open the pop up.
What am I doing wrong?
I attach the code:
Thanks for everyone who can help me handling this.
I'm facing a problem: I have a mosaic region, in which there are editable regions and a repeatable region, viewable through a conditional field. But when I fulfill the fields in the repeatable region and then I save, the changes are not being saved. This means that I neither see the data in the preview nor in the repeatable region when I re-open the pop up.
What am I doing wrong?
I attach the code:
- Code: Select all
<cms:mosaic name='mappa' label='Mappa' order='3'>
<cms:tile name='mappa_singola' label='Aggiungi Mappa'>
<cms:editable type='text' name='mappa_titolo' label='Titolo della mappa'/>
<cms:editable type='image' name='mappa_img' label='Immagine della mappa' show_preview='1' preview_width='150'/>
<cms:editable type='checkbox' name='mappa_scelta_legenda' label='Abilitare legenda?' opt_values='Sì'/>
<cms:func _into='my_cond' mappa_scelta_legenda=''>
<cms:if mappa_scelta_legenda='Sì'>show<cms:else />hide</cms:if>
</cms:func>
<cms:repeatable name='mappa_legenda' label='Legenda' not_active=my_cond>
<cms:editable type='text' label='Colore di riferimento' name='mappa_legenda_colore'/>
<cms:editable type='text' label='Numero/Lettera di riferimento' name='mappa_legenda_numero'/>
<cms:editable type='text' label='Descrizione legenda' name='mappa_legenda_desc'/>
</cms:repeatable>
<cms:config_list_view>
<cms:field 'k_content' >
<div class="mosaic-list">
<div class="row">
<div class="cell cell-label col-md-2">
<label>Titolo mappa</label>
</div>
<div class="cell cell-content col-md-10">
<div class="field-content">
<cms:show mappa_titolo/>
</div>
</div>
</div>
<div class="row">
<div class="cell cell-label col-md-2">
<label>Immagine mappa</label>
</div>
<div class="cell cell-content col-md-10">
<div class="field-content">
<a class="img-popup" href="<cms:show mappa_img />">
<img src="<cms:show mappa_img />" width="150">
</a>
</div>
</div>
</div>
<cms:if mappa_scelta_legenda='Sì'>
<div class="row">
<div class="cell cell-label col-md-2">
<label>Legenda</label>
</div>
<div class="cell cell-content col-md-10">
<div class="field-content">
<cms:show mappa_scelta_legenda />
</div>
</div>
</div>
<div class="row">
<div class="cell cell-label col-md-2">
<label>Voci legenda</label>
</div>
<div class="cell cell-content col-md-10">
<div class="field-content">
<cms:show_repeatable 'mappa_legenda'>
<cms:if mappa_legenda_colore><cms:show mappa_legenda_colore/> - </cms:if><cms:if mappa_legenda_numero><cms:show mappa_legenda_numero/> - </cms:if><cms:show mappa_legenda_desc/>
</cms:show_repeatable>
</div>
</div>
</div>
</cms:if>
</div>
</cms:field>
</cms:config_list_view>
</cms:tile>
</cms:mosaic>
Thanks for everyone who can help me handling this.
