Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
A plugin that styles the newest article different from the older ones
Hi guys,
I’m looking for a plug-in that styles the newest post differently from the older posts. I swear I’ve seen a plugin that does that, but have had no luck finding it…
Thanks
Offline
Re: A plugin that styles the newest article different from the older ones
What about something like this:
<div style="one"><txp:article limit="1" /></div><div style="two"><txp:article offset="1" limit="1" /></div>
Would that do what you’re hoping for?
- Ben
Last edited by benbruce (2007-08-23 06:27:59)
Offline
Re: A plugin that styles the newest article different from the older ones
Or something similar to the one suggested by Ben:
<txp:article limit="1" form="newest" />
<txp:article offset="1" limit="5" form="default" />
Then, you create the “newest” form, add some custom “ad-hoc” HTML (like a wrapping div, or IDs or a classes, or more or less elements/txp tags) and then you can style it different.
Offline
#4 2007-08-23 16:23:19
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: A plugin that styles the newest article different from the older ones
Offline
Re: A plugin that styles the newest article different from the older ones
Thanks to everyone for the help, but maniqui had exactly what I was looking for, thanks!
Offline