hi,
I had part of this question in another thread but will move to this one for various reasons with just 1 question and not 20.
I want to add a new page and add some php.
I followed the logic of the default page_2 and copied and pasted these files and called them jagpage.
To create a new page I have
/includes/modules/pages/jagpage/header_php.php
/includes/languages/english/custom/jagpage.php
/includes/templates/custom/templates/tpl_jagpage_default.php
/includes/languages/english/html_includes/define_jagpage.php
where it says PAGE_2 I have changed to JAGPAGE in all files. If i type in
http://localhost/ecommerce/zen/index...n_page=jagpage
I do get the page with just the contents in japage being displayed and not the define_jagpage.php.
I am so close but so far.
This must be the sticking point in the tpl file I have
--
<?php if (DEFINE_JAGPAGE_STATUS >= 1 and DEFINE_JAGPAGE_STATUS <= 2) { ?>
<div id="jagpageMainContent" class="content">
<?php
/**
* load the html_define for the page_2 default
*/
require($define_page);
?>
----
</div>
Bookmarks