Hi Guys,
Quick question...
How can I hack Serendipity so only posts from a certain category appear on the *front* page? Any code examples/pointers would be really helpful.
Cheers
Dave
Custom stuff...
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Open your index.php and add this after line #9 (in s9y v. 0.4, the line after $uri = $_SERVER[...]):
$serendipity['GET']['category'] = 'yourcategory';
This will set a default category. If one selected a different category, the variable gets changed later in index.php
Hope that does the trick,
Garvin.
$serendipity['GET']['category'] = 'yourcategory';
This will set a default category. If one selected a different category, the variable gets changed later in index.php
Hope that does the trick,
Garvin.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
That's a good idea, thanks. I've added it to our todo list!
Regards,
Garvin.
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/