Filtering categories

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
Jetch
Posts: 2
Joined: Sun Oct 08, 2006 10:45 pm

Filtering categories

Post by Jetch »

hello,

i just starting using Serendipity and am in the process of tweaking the Andreas00 template. I'd like to modify the appearance of the categories plugin by first removing the "All categories" link, and secondly filter the display so that only the entries within the selected category are shown.

In otherwords, when you first go to the blog, it doesn't automatically show you every entry, it only shows you the entries for the first (topmost) category. If the reader wants to view other entries they have to click on each of the categories. My categories are diverse, so i'm trying to simply the viewing of the blog.

Thanks,

jc
lordcoffee
Regular
Posts: 308
Joined: Tue Nov 29, 2005 10:22 pm
Location: Munich - Germany
Contact:

Post by lordcoffee »

Hi!

you can do this in a lot of ways:

1.: Modifiying the category sidebar (deleting "all categories"):

open the file called "plugin_categories.tpl". If there is none, copy one from another template. Find the line with the:

Code: Select all

<a href="{$form_url}" title="{$CONST.ALL_CATEGORIES}">{$CONST.ALL_CATEGORIES}</a>
and delete it. Then go to the adminpanel and turn on the smarty-templating in your categorie-plugin configuration.

2.: Download the "Start Page Category" plugin from spartacus, install and choose the categorie with has to be shown on the startpage.

This must be the best solution I think :wink:
Post Reply