Frisch aus der Presse
if_section
Autor: Karsten
<txp:if_section> ...your content here...<txp:else />...default option... </txp:if_section>
Attribute: name
Gehört zu den conditional comments.
Beispiel:
<txp:if_section name="about">
<p>Dieser Text erscheint.</p>
</txp:if_section>
Kann auch mit <txp:else /> kombiniert werden.
<txp:if_section name="about">
<p>Dieser Text erscheint.</p>
<txp:else />
<p>Oder eben dieser Text.</p>
</txp:if_section>
Hinweis:
Um die Default Section (=Homepage) auszuwählen, verwendet man name=””.
Um die Default und weitere Sections auszuwählen, verwendet man name=”,otherSection1(,otherSection2,...)”.
Man beachte das Komma zu Beginn.
Filed: