Make the generation of legacy sidebars optional
djnz - July 25, 2005 - 22:50
| Project: | Flexiblock |
| Version: | 4.6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | minor |
| Assigned: | djnz |
| Status: | postponed |
Jump to:
Description
This is already achieved with wgSmarty, which detects Flexiblock and doesn't generate the legacy sidebars if it is present.
Achieving the same by hacking PHPtemplate would be possible, but less than ideal.
Needs revisiting after further thought.

#1
In flexiblock 1.8 changes were made so that flexiblock blocks are independent of legacy sidebars. The PHPtemplate theme engine still looks for blocks for the sidebars (using two SQL queries) but if no blocks are assigned, the queries will return no blocks.
It would be good to remove the unnecessary queries, but this requires changes to PHPtemplate so it isn't going to happen as part of this module. The hack is easy so perhaps just providing instructions to comment out generation of $sidebar_left and $sidebar_right is a good idea.