sidebar items - different pages - different items?

Having trouble installing serendipity?
Post Reply
msp_erv
Regular
Posts: 67
Joined: Thu Feb 05, 2009 1:58 am

sidebar items - different pages - different items?

Post by msp_erv »

hi....

i would very much like to assign different side bar items to different pages as i develope content...

we have the statac page module added and have a page set to home page...

we like current side bar setup for home page - but wish to change them as we go thru site

how can i do this?

thank you
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Re: sidebar items - different pages - different items?

Post by judebert »

If you install the "Toggle sidebar state" (serendipity_event_sidebarhider) plugin, you'll get a new "Manage Sidebar Visibility" link that lets you hide sidebar items based on category. Would that get you what you want, or would you actually need per-entry sidebar items?
Judebert
---
Website | Wishlist | PayPal
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: sidebar items - different pages - different items?

Post by yellowled »

msp_erv wrote:we like current side bar setup for home page - but wish to change them as we go thru site
Well, first of all you should note that there is probably no out-of-the-box solution for this, i.e. no easy-to-use plugin or something. As far as I know and have experienced, this is currently only possible by tweaking your site's template, which means it's going to have to be rather "static" since it has to be hardcoded into the template.

If your level of experience with using and modifying s9y is rather basic, you'll probably rather not wanna get into this. It's your call, however :)

Just to give you a taste of it: s9y can have multiple sidebars, even more than just the default two. See Don's great article on this to give you an idea of what's possible and how it works.

s9y also has ways to detect the type of page you're on -- start page, category view, single entry view, etc. You could combine this with the multiple sidebars to emit a special sidebar for i.e. the start page, static pages, single entry pages etc., if that suffices.

However, there's only limited possibility to assign a sidebar to a specific static page, and none -- again, as far as I know -- to assign a sidebar to a specific entry. Also note that you can easily clutter your plugin configuration with too many sidebars available, and that all of this might cost you some of Grandma's performance pennies. Also, the technique I mentioned might require strict rules for publishing content to your site, i.e. you're going to have to follow certain rules, depending on the type of detail you're actually going to need.

YL
msp_erv
Regular
Posts: 67
Joined: Thu Feb 05, 2009 1:58 am

Re: sidebar items - different pages - different items?

Post by msp_erv »

If you install the "Toggle sidebar state" (serendipity_event_sidebarhider) plugin, you'll get a new "Manage Sidebar Visibility" link that lets you hide sidebar items based on category. Would that get you what you want, or would you actually need per-entry sidebar items?
per entry side bar items would be ideal....

...perfect infact
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Re: sidebar items - different pages - different items?

Post by judebert »

I think the only way to get per-entry sidebar items will be to actually put them in the entry.
Judebert
---
Website | Wishlist | PayPal
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: sidebar items - different pages - different items?

Post by yellowled »

judebert wrote:I think the only way to get per-entry sidebar items will be to actually put them in the entry.
Without getting ahead too far -- but might this be something Garvin's latest addition (see thread over in Themes forum) could do?

YL
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Re: sidebar items - different pages - different items?

Post by judebert »

I was just thinking the same thing. I dunno, though; Garvin, does your new template event code allow for event plugins, sidebar plugins, or both?
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: sidebar items - different pages - different items?

Post by garvinhicking »

Hi!
judebert wrote:I was just thinking the same thing. I dunno, though; Garvin, does your new template event code allow for event plugins, sidebar plugins, or both?
It allows for both.

Technically, it should be possible to offer integration for this, but it touches a lot of areas. I wouldn't know how to easily implement this within the interface. If that is settled, I could talk about possible implementation ideas.

It's easy to edit the index.tpl template file for individual sidebar placement with manual IF-checks. It's also easy to build multiple sidebar types (left1, left2, left3) and create a checkbox/dropdown toggle for each entry and store that inside entryproperties to give access to, but further than that, I wouldn't know what is exactly required/wanted and if there's a way to provide a nice interface for it.

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/
Post Reply