Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
Re: Identifying section articles: navigation question
OK thanks, I’ll investigate that further….
Offline