Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
show an article which matches required values for BOTH categories
I thought maybe I could nest conditionals, but it didn’t work
<code><txp:if_article_category name=“value-of-cat1” number=“1”>
<txp:if_article_category name=“value-of-cat2” number=“2”>
outcome
</txp:if_article_category>
</txp:if_article_category>
</code>
its late
apologies for any dumness
Offline
#2 2006-02-28 01:09:32
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: show an article which matches required values for BOTH categories
maybe chh_article_custom
category=“Dog,Chicken&Egg,Cat”
Restricts the article listing to a comma-separated list of category names. When two categories are joined by an ampersand (&), an article must be assigned to both categories to match. For example, the above attribute means the tag should look for articles categorised as either Dog, or Cat, or both Chicken and Egg. An article with category1 set to Chicken and category2 set to Duck would not be matched. The special wildcard “?” will be replaced with the currently browsed category name, if any.
Offline
Re: show an article which matches required values for BOTH categories
he shoots…
he scores!
cheers Nardo
Offline