Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-04-08 09:29:39

mlarino
Member
Registered: 2007-06-29
Posts: 367

<txp:if_section> in article list

Is it posible to use <txp:if_section> in an article list?

I want to style the article list differentely depending if the article is from one section or another, but cant seem to make it work.

<txp:if_section name=“a”>
use color blue for the item of the list
</txp:if_section>

<txp:if_section name=“b”>
use color red for the item of the list
</txp:if_section>

Offline

#2 2010-04-08 09:33:09

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,942
Website GitHub

Re: <txp:if_section> in article list

mlarino wrote:

Is it posible to use <txp:if_section> in an article list?

Yes but you probably meant to use <txp:if_article_section>.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2010-04-08 09:34:07

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: <txp:if_section> in article list

oh!!! aticle section makes a lot more sense!!! :)
THANKS Stef!!!

Offline

Board footer

Powered by FluxBB