Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Article list ignore a category
Hey,
So I know that you can specify an article tag to only display certain categories, but can you get it to display from all cats and then NOT from one particular one, because I dont want to have to specify which cats it can display as the list may change, and would much rather specify which cats it can’t display.
Thanks
~ Cameron
Offline
#2 2009-03-16 16:36:24
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Article list ignore a category
Not in the article tag, but you can do it in your article form:
<txp:if_article_category name="category-to-ignore">
<txp:else />
here your article form code
</txp:if_article_category>
Or use a plugin, like smd_query.
Offline
Re: Article list ignore a category
Works nicely thanks, mebbe adding an attribute to ignore would be something to add in future TXP versions?
~ Cameron
Offline
Pages: 1