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
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

djnz - August 6, 2005 - 21:52
Priority:normal» minor
Status:active» postponed

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.

 
 

Drupal is a registered trademark of Dries Buytaert.