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?
One category on the front page
-
vastneonwolf
- Regular
- Posts: 43
- Joined: Sun May 22, 2005 6:57 am
- Contact:
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: One category on the front page
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
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/
# 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: