Ticket #5615 (closed enhancement: fixed)

Opened 4 months ago

Last modified 4 months ago

Update get_sidebar to work with multiple sidebars (diff attached)

Reported by: AaronCampbell Assigned to: anonymous
Priority: normal Milestone: 2.5
Component: General Version:
Severity: normal Keywords: has-patch tested-working
Cc:

Description

It would be really nice to allow multiple sidebars (left and right) that could be managed in multiple sidebar files in a template. Adding two lines and one optional parameter to the get_sidebar() function would allow you to pass a sidebar name. For example, get_sidebar('left') would load the template TEMPLATEPATH . 'sidebar-left.php'

Attachments

wordpress-general-template.diff (0.7 kB) - added by AaronCampbell on 01/09/08 17:38:20.

Change History

01/09/08 17:38:20 changed by AaronCampbell

  • attachment wordpress-general-template.diff added.

01/09/08 21:12:48 changed by thee17

  • keywords set to has-patch tested-working.
  • milestone changed from 2.6 to 2.5.

+1 I like this, and would support its addition to 2.5 possibly, as it really doesnt effect anything else but adds options for templating without breaking old templates.

01/14/08 02:33:57 changed by matt

+1

01/14/08 04:51:29 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [6609]) Get named sidebars. Props AaronCampbell?. fixes #5615

(follow-up: ↓ 5 ) 01/14/08 21:29:01 changed by AaronCampbell

Thanks for committing that. What exactly is that props link? It seems to go nowhere.

(in reply to: ↑ 4 ; follow-up: ↓ 6 ) 01/14/08 21:38:40 changed by filosofo

Replying to AaronCampbell:

What exactly is that props link? It seems to go nowhere.

Mediawiki automatically makes links to words that are camel case, which your username is, whether or not it goes anywhere.

(in reply to: ↑ 5 ) 01/14/08 21:40:25 changed by AaronCampbell

Replying to filosofo: Thanks. I guess I'll see a bunch of those then.