Other template for category plugin + sidebar

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
tazilein
Regular
Posts: 56
Joined: Sun Apr 30, 2006 11:44 pm
Contact:

Other template for category plugin + sidebar

Post by tazilein »

I have a businesswebsite using s9y up & running. I now wanted to add a "real" blog to the website to give a better view on the company. I installed the "choose template for category"-plugin and changed the template for the new category that should be used for the weblog.

The problem is that I want a different sidebar for this category (not the normal website menue, but all that typical blogstuff as buttons, rss-feed,...). Is there a way to change the sidebar for a specific category only ?
my S9Y-Blogs: my personal brainbackup | [url=http://www.viennacityflats,at]Vienna Apartments Rental[/url] | Kasperls Geschichten | various other Sites using S9y as CMS
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Other template for category plugin + sidebar

Post by garvinhicking »

Hi!

Yes, check the "Toggle/Hide sidebars" plugin.

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/
tazilein
Regular
Posts: 56
Joined: Sun Apr 30, 2006 11:44 pm
Contact:

Post by tazilein »

Hello,

Finally I tried the toggle/hide sidebar plugin, but I miss one option ( or I just did not figure it out).

I want certain plugins to be available allways, except 1-2 certain categories. In the options I only found the other way = you have to select all categories by hand where you want the plugin to be viewed. This can be problematic if new categories are added.

Is it possible to have a sidebar plugin allways visible except category 1+2 ?
my S9Y-Blogs: my personal brainbackup | [url=http://www.viennacityflats,at]Vienna Apartments Rental[/url] | Kasperls Geschichten | various other Sites using S9y as CMS
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Yes, the plugin works like that. Reverting the logic would mean to nearly completely rewrite the plugin's logic.

You can patch your templates sidebar.tpl file to add a "IF"-Check within the foreach loop to exclude categories based on a category ID, though.

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/
tazilein
Regular
Posts: 56
Joined: Sun Apr 30, 2006 11:44 pm
Contact:

Post by tazilein »

Hello Garvin,

Thats what I feared. So I will make it the way the plugin expects me to work :) (and have in mind that I need to make changes when I chance the categories).
my S9Y-Blogs: my personal brainbackup | [url=http://www.viennacityflats,at]Vienna Apartments Rental[/url] | Kasperls Geschichten | various other Sites using S9y as CMS
Post Reply