Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2008-02-19 21:16:48
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Differentiating if you are viewing a section or a category
You don’t need asy_wondertag for the first article tag, in fact <txp:article / >
can’t have (and doesn’t need) the category
attribute.
Offline
Re: Differentiating if you are viewing a section or a category
@Els You’re absolutely right, the first <txp:article /> doesn’t need it. So this would be the final code:
<txp:if_category><txp:article status="sticky" limit="1" />
<txp:asy_wondertag><txp:article_custom form="subArticle" limit="999" sort="Posted Asc" status="live" category="<txp:category />" /></txp:asy_wondertag><txp:else /><txp:article status="sticky" limit="1" /></txp:if_category>
Offline