Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-08-22 16:12:28

theturninggate
Member
Registered: 2004-11-07
Posts: 185
Website

txp:if_category for individual articles

I’m using this code:

<txp:if_category name=“Lightroom”>

<txp:output_form form=“LRGalleries” /> <txp:output_form form=“LRIndexes” /> <txp:output_form form=“LRArticles” />

<txp:else />

<txp:output_form form=“SEARCH-INPUT” /> <txp:output_form form=“CATEGORYLIST” /> <txp:output_form form=“RECENTHEADLINES” />

</txp:if_category>

When I view http://theturninggate.com/blog/?c=Lightroom, it works perfectly.

When I view an individual article that belongs to the category, it reverts to the txp:else set of menus.

Any suggestions for how I can keep the “Lightroom” menus in place while viewing individual articles?

Thanks,
theturninggate

Offline

#2 2007-08-22 16:15:04

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: txp:if_category for individual articles

<txp:if_article_category /> ?

Offline

#3 2007-08-23 08:17:25

theturninggate
Member
Registered: 2004-11-07
Posts: 185
Website

Re: txp:if_category for individual articles

That one does it. Thanks!

Offline

Board footer

Powered by FluxBB