One category on the front page

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
vastneonwolf
Regular
Posts: 43
Joined: Sun May 22, 2005 6:57 am
Contact:

One category on the front page

Post by vastneonwolf »

Is there a way to display entries from just one category on the front page?
For example I have several categories but one is called News, I'd like to only display that category on the front page.

Can this be done?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: One category on the front page

Post by garvinhicking »

Yes, you can set the categoryid by either creating a plugin which hooks into the frontend_config hook and sets $serendipity['GET']['category'] = X (X is the ID of your news category) or hack that part into the code.

I have posted an answer to this on the forums on 2 occassions, maybe you can try to look them up? Keywords would be something like "front page category"...?

Regards,
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/
vastneonwolf
Regular
Posts: 43
Joined: Sun May 22, 2005 6:57 am
Contact:

Post by vastneonwolf »

Thanks once again Garvin,
I did do a search before posting but not that phrasing :)
Post Reply