Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-08-22 23:56:04

anthony
New Member
Registered: 2005-03-09
Posts: 3
Website

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

#2 2007-08-23 06:26:45

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

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

#3 2007-08-23 13:19:35

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

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

#5 2007-08-23 18:44:59

anthony
New Member
Registered: 2005-03-09
Posts: 3
Website

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

Board footer

Powered by FluxBB