Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#14 2008-02-19 21:28:48

draganbabic
Member
From: Novi Sad, Serbia
Registered: 2006-09-27
Posts: 118
Website

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

Board footer

Powered by FluxBB