Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Default conditional + two special-case conditionals
I want to use the if_article_category conditional to get special case behaviours for two specific categories and default behaviours for the rest of the categories on an article form.
It doesn’t look like if_article_category supports multiple categories. Here’s how I’ve tried it (without success).
<code><txp:if_article_category name=“One” >
I am One
</txp:if_article_category>
<txp:if_article_category name=“Two” >
I am Two
</txp:if_article_category>
<txp:if_article_category name=“Three,Four,Five,Six,Seven” >
I am the default value
</txp:if_article_category>
</code>
Any help would be appreciated.
-Thanks
Last edited by mrdale (2006-02-11 19:34:17)
Offline
Re: Default conditional + two special-case conditionals
Hmmm.
It looks like <code><txp:if_article_category name=“Three,Four,Five,Six,Seven” ></code> could be replaced by <code><txp:else /></code> but I’m unsure how to put in that second conditional.
Sorry I couldn’t be of more help. Hopefully, someone can come up with a solution.
Offline
Re: Default conditional + two special-case conditionals
Hi mrdale.
As far as I know, in 4.0.2, if_article_category and if_article_section didnt support multiple values.
Check this thread: http://forum.textpattern.com/viewtopic.php?id=12763
I dont know if that has changed in 4.0.3.
Offline