Well I really don't know what all that does or how to apply it. All I want is to make a page with content display within a sidebox I created.
I created in includes/templates/template_default/tpl_textbox.php and it looks like this
Code:
<?php
/**
* Side Box Template
*
* @package templateSystem
* @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: tpl_search.php 4142 2006-08-15 04:32:54Z drbyte $
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$content .= I WANT TO INCLUDE A PAGE HERE what code does this
$content .= '</div>';
?>
Then I created a corresponding file in includes/modules/sideboxes/textbox.php to make it appear in the layout boxes list in the admin area.
Code:
<?php
/**
* search sidebox - displays keyword-search field for customer to initiate a search
*
* @package templateSystem
* @copyright Copyright 2003-2005 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: search.php 2834 2006-01-11 22:16:37Z birdbrain $
*/
require($template->get_template_dir('tpl_textbox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_textbox.php');
$title = '<label>' . BOX_HEADING_TEXTBOX . '</label>';
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
?>
I also created a file in includes/languages/english/html_includes/define_textbox.php which I can write to from the define pages editor in the admin. I want this page (define_textbox.php) to be called into the side box. How can this be done.