August 04, 2005

Implementing "The Mullet": a how-to guide

Several readers have emailed me, asking what is the easiest way to convert your blog from "standard" layout to a mullet layout. The code is dead easy (at least in movable type).
mullet_100.jpg

The only changes that are needed are on your main index template. The first loop is normal, just shortened to 5 entries from the typical 8 or 10:

MTEntries lastn="5"
...
/MTEntries

Follow this up with a second MTEntries tag. Inside that MTEntries tag, put your shortened layout (just the permalink and the date, for example). Use the offset attribute of the MTEntries tag to avoid repeating the top posts.


MTEntries lastn="45" offset="5"
...shortened layout goes here ....
/MTEntries

That's all there is to it! I don't know how you would do this in WordPress, but I have to assume it's pretty similar: if anyone gets a WordPress mullet going, send a link my way and I will post the code here.



Previous Comments



Recent Entries
» RobotReplay looks pretty neat!
» Scaling Rails : twittering about scale
» YUI customer success stories: google???
» Using virtualization to automate deployment: is it a good idea or not?
» SlideShare “World’s Best Presentation” contest!

my company: www.uzanto.com
email: jon at uzanto.com