
Originally Posted by
kuroi
This is a fairly complicated process and the exact solution will depend on specifically what you wish to do. But it's a good question, and worth of a FAQ entry, so
here it is. Please come back here if you need further clarification.
Even though I didn't ask the original question, I did read the FAQ tutorial on having different sideboxes show up on different ez pages. That's how I found this thread as I didn't understand it fully.
from the tutorial:
---------------
You will need to wrap this in a conditional statement such as
Code:
if (!isset($ez_page_id) || !in_array($ezpage_id,explode(",",'2,5'))) {
require($template->get_template_dir('tpl_order_history.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_order_history.php');
$title = BOX_HEADING_CUSTOMER_ORDERS;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
This condition means that the template to display the sidebox will be called whenever the page is not an EZ-Page or, if it is an EZ-Page, it does not have ID 2 or 5.
Finally, and importantly, don't forget to save your result in an over-ride file.
---------------------------------
1. what do the (,,2,5) represent?
2. the example is to make a side box not show up, what makes a side box show up that isn't on except for the designated ez-page?
3. Where do you find the ez=page ID (in this example) 2 and 5?
4. Where would you save the override file to and what would be the naming scheme?
5. Does this file need to be referenced in any other file in order to work?
thank you,
betty
Bookmarks