#5615 closed enhancement (fixed)
Update get_sidebar to work with multiple sidebars (diff attached)
Reported by: | AaronCampbell | Owned by: | |
---|---|---|---|
Milestone: | 2.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch tested-working |
Focuses: | 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 (1)
Change History (7)
#4
follow-up:
↓ 5
@
17 years ago
Thanks for committing that. What exactly is that props link? It seems to go nowhere.
#5
in reply to:
↑ 4
;
follow-up:
↓ 6
@
17 years ago
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.
Note: See
TracTickets for help on using
tickets.
+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.