Group post by category in blog home page

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
satollo
Regular
Posts: 13
Joined: Wed Jul 05, 2006 9:41 am
Contact:

Group post by category in blog home page

Post by satollo »

I wonder if it's possibile to modify *only* the blog home page to have a "box per category" with the last posts of that category instead of a unique post list.

It hasn't to be an automatic home page organization, I can made it by hand choosing which categories to show and modifing some of the .tpl files.

Thank you, Satollo.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Group post by category in blog home page

Post by garvinhicking »

Hi!

You can do that with Smarty flexible IF conditionals. The $startpage variable is set whenever you are on the startpage, and you can check that variable inside your sidebar.tpl file for example.

The other way is the "Toggle sidebar state" event plugin, with which you can define when and where to show sidebar plugins.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply