Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-04-09 17:12:30

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Identifying section articles: navigation question

I’m thinking about identifying my different articles according to their category. Because I write stuff on different themes – photography, jazz, mountains, etc – it could make navigation sense to do this.

I’m thinking of some kind of ‘colour coding’, or an image display, that will be auto inserted in every article according to its section.

Has/does anyone do this, and if so have some ideas on how to do it

1) that works aesthetically and
2) that’s workflow/txp efficient.

Might be cool to do it for my photos, as well.

Offline

#2 2007-04-09 21:58:23

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Identifying section articles: navigation question

If it’s just background colors and images, then you could do something like: <body id="<txp:category />"> and have body#jazz { background: blue }.

If it’s text and images that will load conditionally, then:

<txp:if_category name="jazz">
     jazz stuff
</txp:if_category>
<txp:if_category name="mountains">
     mountainous stuff
</txp:if_category>

Offline

#3 2007-04-12 08:03:01

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: Identifying section articles: navigation question

OK thanks, I’ll investigate that further….

Offline

Board footer

Powered by FluxBB