Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-05-10 12:25:00
- dressfordialogue
- New Member
- Registered: 2004-11-18
- Posts: 8
Assigning a class to day, month and year
Did some searching but came up empty.
I simply want to assign some classes to the day, month and year that <code><txp:posted /></code> spits out.
Offline
#2 2006-05-10 14:19:08
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Assigning a class to day, month and year
What if you split the tag in three? Instead of <txp:posted format="%b %d, %Y" />
:
<code>
<div class=“month”><txp:posted format=”%b” /></div>
<div class=“day”><txp:posted format=”%d” /></div>
<div class=“year”><txp:posted format=”%Y” /></div>
</code>
Offline
#3 2006-05-10 20:14:57
- dressfordialogue
- New Member
- Registered: 2004-11-18
- Posts: 8
Re: Assigning a class to day, month and year
Spot on.
Thank you Els.
Offline