Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Posts
    45
    Plugin Contributions
    0

    Default New Page adding - using Defined Pages

    I have added a new page called policies to our website which is still in testing phase. This new page is accessible through the define_page menu in the admin console but it does not show in my site map or define pages status. is there something else I need to edit to accomplish this.
    Last edited by Kim; 25 Jun 2009 at 04:13 PM.

  2. #2
    Join Date
    Jun 2009
    Posts
    45
    Plugin Contributions
    0

    Default Re: New Page adding - using Defined Pages

    More Information:

    This is my information.php in my template overide which is working in the admin concole. I though DEFINE_POLICIES_STATUS in this file should take care of my question above. Is this correct.

    <?php
    /**
    * information sidebox - displays list of general info links, as defined in this file
    *
    * @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: information.php 4132 2006-08-14 00:36:39Z drbyte $
    */

    unset($information);

    if (DEFINE_SHIPPINGINFO_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>';
    }
    if (DEFINE_PRIVACY_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a>';
    }
    if (DEFINE_CONDITIONS_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>';
    }
    if (DEFINE_CONTACT_US_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>';
    }
    if (DEFINE_POLICIES_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_POLICIES) . '">' . BOX_INFORMATION_POLICIES . '</a>';
    }

    // Forum (phpBB) link:
    if ( (isset($phpBB->phpBB['db_installed_config']) && $phpBB->phpBB['db_installed_config']) && (isset($phpBB->phpBB['files_installed']) && $phpBB->phpBB['files_installed']) && (PHPBB_LINKS_ENABLED=='true')) {
    $information[] = '<a href="' . zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', false, '', true) . '" target="_blank">' . BOX_BBINDEX . '</a>';
    // or: $phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX
    // or: str_replace(str_replace(DIR_WS_CATALOG, '', DIR_FS_CATALOG), '', DIR_WS_PHPBB)
    }

    if (DEFINE_SITE_MAP_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_SITE_MAP) . '">' . BOX_INFORMATION_SITE_MAP . '</a>';
    }

    // only show GV FAQ when installed
    if (MODULE_ORDER_TOTAL_GV_STATUS == 'true') {
    $information[] = '<a href="' . zen_href_link(FILENAME_GV_FAQ) . '">' . BOX_INFORMATION_GV . '</a>';
    }
    // only show Discount Coupon FAQ when installed
    /* if (DEFINE_DISCOUNT_COUPON_STATUS <= 1 && MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') {
    $information[] = '<a href="' . zen_href_link(FILENAME_DISCOUNT_COUPON) . '">' . BOX_INFORMATION_DISCOUNT_COUPONS . '</a>';
    }*/

    if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') {
    $information[] = '<a href="' . zen_href_link(FILENAME_UNSUBSCRIBE) . '">' . BOX_INFORMATION_UNSUBSCRIBE . '</a>';
    }

    require($template->get_template_dir('tpl_information.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_information.php');

    $title = BOX_HEADING_INFORMATION;
    $title_link = false;

    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    ?>

  3. #3
    Join Date
    Jan 2009
    Posts
    50
    Plugin Contributions
    0

    Default Re: New Page adding - using Defined Pages

    Hello

    I am having the same problem, did you find a solution yet?
    ...........Being zenned............

 

 

Similar Threads

  1. custom search page using defined page with ajax
    By jeffiec in forum Code Collaboration
    Replies: 6
    Last Post: 26 Feb 2013, 01:08 PM
  2. Adding a new Defined Page
    By rolo550 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 18 Aug 2011, 03:29 AM
  3. require page in defined pages
    By pizza392 in forum General Questions
    Replies: 3
    Last Post: 10 Apr 2011, 08:15 AM
  4. Adding customer ID to Defined pages
    By kbrand in forum General Questions
    Replies: 1
    Last Post: 21 Dec 2008, 07:18 AM
  5. adding new 'defined pages' problems..
    By LoSpaccone in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Jul 2007, 09:02 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR