jimmy_jazz,
There is no official override at present for the "modules/pages" folder.
However, I just threw this hack together which may help you!
Code:
<?php
// common/main_template_vars.php to permit per-page overrides of the main_template_vars.php scripts in modules/pages
// $Id: main_template_vars.php 2004-09-07 DrByteZen $
//
// TO USE:
// 1. Put this file into /includes/templates/YOURTEMPLATE/common/main_template_vars.php
// 2. Next, under a modules/pages/PAGENAME folder, create a YOURTEMPLATE folder
// and insert your customized main_template_vars.php for that page
// For example:
// copy:
// /includes/modules/pages/product_info/main_template_vars.php
// to:
// /includes/modules/pages/product_info/classic/main_template_vars.php
// and edit this new file to include the changes you desire to have override the original main_template_vars.php file.
// NOTE: if the main_template_vars.php calls other files (like main_template_images_vars.php), you'll need to manually add
// your templatename into the path to the main_template_images_vars.php file IF you are trying to override that one too.
// EXAMPLE:
// /includes/modules/pages/product_info/classic/main_template_vars.php
// /includes/modules/pages/product_info/classic/main_template_images_vars.php
// To use this "classic" version of the main_template_images_vars.php,
// you'd have to hard-code the "classic" path into your customized ..../classic/main_template_vars.php file.
//
if (file_exists(DIR_WS_MODULES . 'pages/' . $current_page_base . '/' . $template_dir . '/main_template_vars.php')) {
$body_code = DIR_WS_MODULES . 'pages/' . $current_page_base . '/' . $template_dir . '/main_template_vars.php';
} else if (file_exists(DIR_WS_MODULES . 'pages/' . $current_page_base . '/main_template_vars.php')) {
$body_code = DIR_WS_MODULES . 'pages/' . $current_page_base . '/main_template_vars.php';
} else {
$body_code = $template->get_template_dir('tpl_' . preg_replace('/.php/', '',$_GET['main_page']) . '_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_' . $_GET['main_page'] . '_default.php';
}
?>
Bookmarks