As an alternative, you could also create a template-customized version of /includes/modules/column_left.php (i.e. copy the core file to /includes/modules/YOUR_TEMPLATE/column_left.php and make your edits there). Here's what I came up with for your specified case (information sidebox first on contact_us page):
Code:
<?php
/**
* column_left module
*
* @package templateStructure
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: column_left.php 4274 2006-08-26 03:16:53Z drbyte $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
$column_box_default='tpl_box_default_left.php';
// Check if there are boxes for the column
$column_left_display= $db->Execute("select layout_box_name from " . TABLE_LAYOUT_BOXES . " where layout_box_location = 0 and layout_box_status= '1' and layout_template ='" . $template_dir . "'" . ' order by layout_box_sort_order');
// safety row stop
$box_cnt=0;
$information_sidebox_shown = false;
if ($current_page_base == FILENAME_CONTACT_US) {
if ( file_exists(DIR_WS_MODULES . 'sideboxes/information.php') or file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/information.php') ) {
$column_width = BOX_WIDTH_LEFT;
$box_cnt++;
$information_sidebox_shown = true;
if ( file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/information.php') ) {
$box_id = zen_get_box_id('information.php');
require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/information.php');
} else {
$box_id = zen_get_box_id ('information.php');
require(DIR_WS_MODULES . 'sideboxes/information.php');
}
}
}
while (!$column_left_display->EOF and $box_cnt < 100) {
$box_cnt++;
if ( !($information_sidebox_shown && $column_left_display->fields['layout_box_name'] == 'information.php') && (file_exists(DIR_WS_MODULES . 'sideboxes/' . $column_left_display->fields['layout_box_name']) or file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_left_display->fields['layout_box_name']) ) ) {
?>
<?php
//$column_box_spacer = 'column_box_spacer_left';
$column_width = BOX_WIDTH_LEFT;
if ( file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_left_display->fields['layout_box_name']) ) {
$box_id = zen_get_box_id($column_left_display->fields['layout_box_name']);
require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_left_display->fields['layout_box_name']);
} else {
$box_id = zen_get_box_id($column_left_display->fields['layout_box_name']);
require(DIR_WS_MODULES . 'sideboxes/' . $column_left_display->fields['layout_box_name']);
}
} // file_exists
$column_left_display->MoveNext();
} // while column_left
$box_id = '';
?>
Bookmarks