Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-07-24 21:53:50
- jmart
- Member
- Registered: 2008-08-25
- Posts: 68
if/else statements for all but 1 section
Is there a way to apply an if/else statement to all sections but 1 section rather than having to spell out every section but that one section? same goes for an article as well.
for example, the if_section tag requires us to spell out every section but what if you have lots of sections and intend to add more down the road. perhaps there is a way to apply the reverse?
Last edited by jmart (2009-07-24 22:12:59)
Offline
Re: if/else statements for all but 1 section
jmart wrote:
Is there a way to apply an if/else statement to all sections but 1 section rather than having to spell out every section but that one section? same goes for an article as well.
<txp:if_section name="onesection">
<txp:else/>
Do stuff for all the other sections but not the one section
</txp:if_section>
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline