Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2009-09-02 09:46:15

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Article-List: How to exclude 2 _categories_?

bnetz wrote:

i feel the exclude-tag should be positioned INSIDE the txp:article-tag, but how? :-)

The if_article_category block needs to be inside the article form. Or, given that you can use article as a container instead of using a form, something like this:

<txp:article limit="9999" sort="Posted desc">
	<txp:if_article_category name="exclude1,exclude2"><txp:else />
		<h3><txp:permlink><txp:title /></txp:permlink></h3>
		<txp:excerpt />
	</txp:if_article_category>
</txp:article>

Code is topiary

Offline

Board footer

Powered by FluxBB