Feature wish: Choose categories to show on homepage

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
gde
Regular
Posts: 6
Joined: Fri Apr 02, 2004 11:11 am

Feature wish: Choose categories to show on homepage

Post by gde »

I would like to be able to choose which categories of news will show up on the homepage.

Categories not showing up will of course be reachable via links from the homepage (but they are not promoted).

I would solve the problem "This news is worth having on the homepage but not this one."

Cheers
Bruce
Regular
Posts: 18
Joined: Sun Mar 14, 2004 5:28 am
Location: Ontario/ Canada
Contact:

category specific front page

Post by Bruce »

I agree, there muct be a way to hack the main start page to just show a specified category...I am wondering about having index.php be a category page, ie:

Code: Select all

http://www.bkdesign.ca/s9y/categories/4_Front_Page
is the url of the category "Front Page" on my site. Placing this as index.php would make main page category specific? Am looking at /templates/layout.php and serendipity_config.inc.php.
I am considering a new index.php which is actually a redirect to the category page, but would be better to have the url not show categories etc...
The other thing is to lose the "_" underscores in filenames, google doesn't see them as spaces, which hurts ratings. dashes are seen as spaces by search bots...
I didn't do it
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: category specific front page

Post by garvinhicking »

Bruce, you could try using s9y in embedded mode and/or setting a special variable inside index.php:

Code: Select all

$_GET['categoryid'] = 4;
$_REQUEST['categoryid'] = 4;
Though you'd have to find the right place to set this and make some if-conditions to only set this category if none has been defined.

Personally I can't help you with that, as I feel a blog should always show all categories on the startpage; if a user explicitly wanted to only see a certain category, he would do so by himself.

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/
Bruce
Regular
Posts: 18
Joined: Sun Mar 14, 2004 5:28 am
Location: Ontario/ Canada
Contact:

Categories

Post by Bruce »

Thanks Garvin, will see what I can do.
I feel a blog should always show all categories on the startpage; if a user explicitly wanted to only see a certain category, he would do so by himself.
yes, but I seem to always want to go "beyond the blog" for some reason. I don't know if it's a hobby or what, lol. As a part time "web designer"? am always playin around with these to see how they can be configured for different applications if a customer wants.

A small CMS perhaps? I believe it can be done.
I really like the program, and I know for many the feature to easily add a thumb to an article makes it a winner, among other things. I am looking forward to future developments.
I didn't do it
Post Reply