Using 1.3.9h
I'm trying to add a page 5 to the more information sidebox. All works good, but the new page 5 will not show text. And it does not appear in the sitemap.
I have edited these files:
includes/filenames.php to read
PHP Code:
define('FILENAME_DEFINE_PAGE_2', 'define_page_2');
define('FILENAME_DEFINE_PAGE_3', 'define_page_3');
define('FILENAME_DEFINE_PAGE_4', 'define_page_4');
define('FILENAME_DEFINE_PAGE_5', 'define_page_5');
PHP Code:
define('FILENAME_PAGE_2', 'page_2');
define('FILENAME_PAGE_3', 'page_3');
define('FILENAME_PAGE_4', 'page_4');
define('FILENAME_PAGE_5', 'page_5');
in includes/languages/TEMPLATE/english.php reads
PHP Code:
define('BOX_INFORMATION_PAGE_2', 'Testamonials');
define('BOX_INFORMATION_PAGE_3', 'Media');
define('BOX_INFORMATION_PAGE_4', 'Franchise or Not?');
define('BOX_INFORMATION_PAGE_5', 'Savings');
I added includes/languages/english/page_5.php
PHP Code:
define('NAVBAR_TITLE', 'Savings');
define('HEADING_TITLE', 'Savings');
define('TEXT_INFORMATION', 'Page 5 information goes here.');
?>
I added includes/modules/pages/page_5/page_5.php
PHP Code:
$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_PAGE_5, 'false');
The more information sidebox works fine.
PHP Code:
if (DEFINE_PAGE_2_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . $pointer . BOX_INFORMATION_PAGE_2 . '</a>';
}
if (DEFINE_PAGE_3_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_3) . '">' . $pointer . BOX_INFORMATION_PAGE_3 . '</a>';
}
if (DEFINE_PAGE_4_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . $pointer . BOX_INFORMATION_PAGE_4 . '</a>';
}
if (DEFINE_PAGE_5_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_5) . '">' . $pointer . BOX_INFORMATION_PAGE_5 . '</a>';
}
I have a includes/templates/template_default/templates/tpl_page_5_default.php
PHP Code:
<?php if (DEFINE_PAGE_5_STATUS >= 1 and DEFINE_PAGE_5_STATUS <= 2) { ?>
<div id="pageFiveMainContent" class="content">
<?php
/**
* load the html_define for the page_5 default
*/
require($define_page);
?>
</div>
<?php } ?>
and added to my sitemap
PHP Code:
<?php if (DEFINE_PAGE_2_STATUS <= '1') { ?>
<li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>'; ?></li>
<?php } ?>
<?php if (DEFINE_PAGE_3_STATUS <= '1') { ?>
<li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_3) . '">' . BOX_INFORMATION_PAGE_3 . '</a>'; ?></li>
<?php } ?>
<?php if (DEFINE_PAGE_4_STATUS <= '1') { ?>
<li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>'; ?></li>
<?php } ?>
<?php if (DEFINE_PAGE_5_STATUS <= '1') { ?>
<li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_5) . '">' . BOX_INFORMATION_PAGE_5 . '</a>'; ?></li>
<?php } ?>
So, the problem is that it does not appear on my sitemap, nor does the define page 5 text appear here:
http://www.robertvenezia.com/atoz/in...in_page=page_5
http://www.robertvenezia.com/atoz/in..._page=site_map
Can someone point out what I missed?
Thanks
Bookmarks