Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: adding multiple pages to define page editor

    here is the text from tpl_page_2_default.php in template_default/templates.

    <?php
    /**
    * tpl_page_2_default.php
    *
    * @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: tpl_page_2_default.php 3464 2006-04-19 00:07:26Z ajeh $
    */
    ?>
    <div class="centerColumn" id="pageTwo">
    <h1 id="pageTwoHeading"><?php echo HEADING_TITLE; ?></h1>
    <?php if (DEFINE_PAGE_2_STATUS >= 1 and DEFINE_PAGE_2_STATUS <= 2) { ?>
    <div id="pageTwoMainContent" class="content">
    <?php
    /**
    * load the html_define for the page_2 default
    */
    require($define_page);
    ?>
    </div>
    <?php } ?>
    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
    </div>

    Do all of the RED numbers get incremented to whatever page I am creating?

  2. #12
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: adding multiple pages to define page editor

    Yes, they do, or else you will have constants and element ids controlling pages they should not affect, and not able to distinguish between different pages.

  3. #13
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: adding multiple pages to define page editor

    Im not really up on div tags. Are all of those div tags arbitrary names or are they defined somewhere else?

  4. #14
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: adding multiple pages to define page editor

    The text in quotes ' ' is being defined right where you see it. The text in ALL_CAPITALS is constants, which are defined in language files. The names are not arbitrary; some of them at least must have certain structures to work with the Zen Cart file and code system.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. adding images in define pages editor
    By discoverytdi in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 6 Jul 2011, 10:12 PM
  2. Adding Images to Define Pages Editor Pages
    By nickymcn in forum Managing Customers and Orders
    Replies: 2
    Last Post: 31 Oct 2007, 05:07 AM
  3. Define Pages Editor & Adding External Links
    By stormysar in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Jun 2007, 02:05 AM
  4. Adding pictures in Define Pages Editor
    By jemenvy in forum Customization from the Admin
    Replies: 1
    Last Post: 5 Apr 2007, 08:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg