Hello,
I don't understand where I have a problem in my code (Line 18)?
It makes no sense for me. Could the error resukt from another mistake?
The template says that
that the if here had no closing tag.
And also the text changes will not save.
Best
I don't understand where I have a problem in my code (Line 18)?
It makes no sense for me. Could the error resukt from another mistake?
- Code: Select all
<cms:template title='Impressum' order='61' icon='' parent='_my_kontakt_'>
<!-- Layout -->
<cms:editable name='layout_group' label='Layout' desc='Layout, Farben, etc' type='group' collapsed='1' order='1' />
<!-- Farben -->
<cms:editable name='layout_color_bg' label='Hintergrundfarbe' type='radio' order='1' group='layout_group' opt_values='Blau1=#2172a5 | Orange=#bc640b | Weiss=#ffffff | Blau2=#1b7b94 | Grün=#418530 | Himbeer=#bd4082 | Rot=#a13739 | Schwarz=#656565' />
<cms:editable name='layout_color_text' label='Textfarbe' type='radio' order='2' group='layout_group' opt_values='Blau1=#2172a5 | Orange=#bc640b | Weiss=#ffffff | Blau2=#1b7b94 | Grün=#418530 | Himbeer=#bd4082 | Rot=#a13739 | Schwarz=#656565' />
<cms:editable name='layout_color_hl' label='Farbe der Überschrift' type='radio' order='3' group='layout_group' opt_values='Blau1=#2172a5 | Orange=#bc640b | Weiss=#ffffff | Blau2=#1b7b94 | Grün=#418530 | Himbeer=#bd4082 | Rot=#a13739 | Schwarz=#656565' />
<cms:editable name='layout_color_hlbg' label='Hintergrundfarbe der Überschrift' type='radio' order='4' group='layout_group' opt_values='Blau1=#2172a5 | Orange=#bc640b | Weiss=#ffffff | Blau2=#1b7b94 | Grün=#418530 | Himbeer=#bd4082 | Rot=#a13739 | Schwarz=#656565' />
<!-- Spalten -->
<cms:editable name='layout_columns' label='Text-Spalten' type='radio' order='5' group='layout_group' opt_values='1 | 2 | 3' />
<!-- Fotos -->
<cms:editable type='checkbox' name='fotos_ja_nein' label='Soll dieses Element Fotos enthalten?' opt_values='Ja' group='layout_group' order='6' />
<cms:func _into='my_cond' fotos_ja_nein=''>
<cms:if "<cms:is 'Ja' in=fotos_ja_nein />">
show
<cms:else />
hide
</cms:if>
</cms:func>
<cms:editable type='dropdown' name='anzahl_fotos' label='Wie viele Fotos soll das Element enthalten?' opt_values='Bitte auswählen=- | Eins | Zwei | Drei | Vier' required='1' not_active=my_cond group='layout_group' order='7' />
<cms:editable type='radio' name='layout_fotos_position' label='Foto(s) Position' order='8' group='layout_group' opt_values='Oben=1 | Unten=2' />
<!-- Content -->
<cms:editable name='content_group' label='Inhalte' desc='' type='group' collapsed='1' order='2' />
<!-- Dachzeile -->
<cms:editable name='dachzeile' label='Dachzeile' type='text' order='1' group='content_group' />
<!-- Headline -->
<cms:editable name='headline' label='Überschrift' type='text' order='2' group='content_group' />
<!-- Text -->
<cms:func _into='text_columns-one' layout_columns=''>
<cms:if layout_columns='1' || layout_columns='2' || layout_columns='3'>
show
<cms:else />
hide
</cms:if>
</cms:func>
<cms:editable name='text' type='richtext' order='3' group='content_group' buttons='bold | italic | underline | removeformat | link | unlink ' not_active=text_columns-one />
<cms:func _into='text_columns-two' layout_columns=''>
<cms:if layout_columns='2' || layout_columns='3' />">
show
<cms:else />
hide
</cms:if>
</cms:func>
<cms:editable name='text2' type='richtext' order='3' group='content_group' buttons='bold | italic | underline | removeformat | link | unlink ' not_active=text_columns-two />
<cms:func _into='text_columns-three' layout_columns=''>
<cms:if layout_columns='3' />">
show
<cms:else />
hide
</cms:if>
</cms:func>
<cms:editable name='text3' type='richtext' order='3' group='content_group' buttons='bold | italic | underline | removeformat | link | unlink ' not_active=text_columns-three />
<!-- Fotos -->
<cms:func _into='show_fotos' fotos_ja_nein='' anzahl_fotos=''>
<cms:if "<cms:is 'Ja' in=fotos_ja_nein />">
show
<cms:else />
hide
</cms:if>
</cms:func>
<cms:editable name='fotos_group' label='Fotos' desc='' type='group' collapsed='1' order='3' not_active=show_fotos />
<cms:func _into='my_cond' fotos_ja_nein='' anzahl_fotos=''>
<cms:if "<cms:is 'Ja' in=fotos_ja_nein />" && (anzahl_fotos='Vier' || anzahl_fotos='Drei' || anzahl_fotos='Zwei' || anzahl_fotos='Eins' )>
show
<cms:else />
hide
</cms:if>
</cms:func>
<cms:editable name='image_1' type='image' order='1' group='editables' show_preview='1' preview_width='150' not_active=my_cond group='fotos_group' />
<cms:func _into='my_cond' fotos_ja_nein='' anzahl_fotos=''>
<cms:if "<cms:is 'Ja' in=fotos_ja_nein />" && ( anzahl_fotos='Drei' || anzahl_fotos='Zwei' || anzahl_fotos='Vier' )>
show
<cms:else />
hide
</cms:if>
</cms:func>
<cms:editable name='image_2' type='image' order='3' group='editables' show_preview='1' preview_width='150' not_active=my_cond group='fotos_group' />
<cms:func _into='my_cond' fotos_ja_nein='' anzahl_fotos=''>
<cms:if "<cms:is 'Ja' in=fotos_ja_nein />" && ( anzahl_fotos='Drei' || anzahl_fotos='Vier' )>
show
<cms:else />
hide
</cms:if>
</cms:func>
<cms:editable name='image_3' type='image' order='1' group='editables' show_preview='1' preview_width='150' not_active=my_cond group='fotos_group' />
<cms:func _into='my_cond' fotos_ja_nein='' anzahl_fotos=''>
<cms:if "<cms:is 'Ja' in=fotos_ja_nein />" && (anzahl_fotos='Vier' )>
show
<cms:else />
hide
</cms:if>
</cms:func>
<cms:editable name='image_4' type='image' order='1' group='editables' show_preview='1' preview_width='150' not_active=my_cond group='fotos_group' />
</cms:template>
The template says that
- Code: Select all
<!-- Fotos -->
<cms:editable type='checkbox' name='fotos_ja_nein' label='Soll dieses Element Fotos enthalten?' opt_values='Ja' group='layout_group' order='6' />
<cms:func _into='my_cond' fotos_ja_nein=''>
<cms:if "<cms:is 'Ja' in=fotos_ja_nein />">
show
<cms:else />
hide
</cms:if>
</cms:func>
<cms:editable type='dropdown' name='anzahl_fotos' label='Wie viele Fotos soll das Element enthalten?' opt_values='Bitte auswählen=- | Eins | Zwei | Drei | Vier' required='1' not_active=my_cond group='layout_group' order='7' />
<cms:editable type='radio' name='layout_fotos_position' label='Foto(s) Position' order='8' group='layout_group' opt_values='Oben=1 | Unten=2' />
that the if here had no closing tag.
And also the text changes will not save.
Best