Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-01-21 18:34:32
- monkeynotes
- Member
- From: UK
- Registered: 2005-04-13
- Posts: 41
Multiple if statements, possible?
I am trying to build a page that looks at a single article and renders it differently depending on what category it is in. I thought the txp:if_article_category tag would be useful but it seems you can’t double up on the else tags. Maybe I am arranging this wrong? If you can point me in the right direction I would be most grateful.
<txp:if_article_category name="Gallery" number="1">
<txp:article limit="1" form="gallery" />
<txp:else/>
<txp:if_article_category name="Video" number="1">
<txp:article limit="1" form="video" />
<txp:else/>
<txp:article limit="1" form="regular" />
</txp:if_article_category>
</txp:if_article_category>
Offline
#2 2007-01-21 18:37:24
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Multiple if statements, possible?
Offline
#3 2007-01-21 18:57:38
- monkeynotes
- Member
- From: UK
- Registered: 2005-04-13
- Posts: 41
Re: Multiple if statements, possible?
Thank you!
Offline
Pages: 1