Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Alternate Article Background Colours
Hi
I’d like to alternate the background colours of articles. (Using CSS say .alt1 .alt2)
Is there an easy way?
I had thought about adding a Custom Field with either a 0 or 1 but this would mean remembering if the previous entry was a 0 or 1. (Not a big deal but if there’s a better solution …)
I’m not very familiar with using custom_fields but I think something like <txp:if_custom_field name=“toggle” val =“0” > with an else might work.
Thanks
Geoff
Last edited by geoff777 (2008-08-04 12:33:41)
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
Offline
Re: Alternate Article Background Colours
It’s a bit older – but might still work.
Offline
Re: Alternate Article Background Colours
Thanks juanjonavarro & renobird
I installed the zem plugin and that works very nicely thank you.
I knew my method was a little ‘messy’.
As usual with Textpattern a solution was possible and advice was give quickly.
Love it.
PS juanjonavarro I’m in Benarrabá Andalucía.
A small white mountain village between the Costa del Sol and Ronda. (see website)
It’s hot today. It’s been hot every day since June :-)
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
Re: Alternate Article Background Colours
Yes, geoff777, it’s hot also here at Valencia :-)
Offline
Pages: 1