Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2006
    Posts
    51
    Plugin Contributions
    0

    Default Remove page 2, page 3 from site map

    My site map shows:

    * Shipping & Returns
    * Privacy Notice
    * Conditions of Use
    * Contact Us
    * Gift Certificate FAQ
    * Page 2
    * Page 3
    * Page 4

    Any ideas how to get rid of the last three?

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,039
    Plugin Contributions
    31

    Default Re: Remove page 2, page 3 from site map

    turn them off in:

    admin -> configuration -> define page status

    set them to 3 links off define text off

  3. #3
    Join Date
    Apr 2006
    Posts
    51
    Plugin Contributions
    0

    Default Re: Remove page 2, page 3 from site map

    Quote Originally Posted by clydejones
    turn them off in:

    admin -> configuration -> define page status

    set them to 3 links off define text off
    Works beautifully, thank you very much!

  4. #4
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,039
    Plugin Contributions
    31

    Default Re: Remove page 2, page 3 from site map

    Glad to help

  5. #5
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    813
    Plugin Contributions
    0

    Default Re: Remove page 2, page 3 from site map

    I tried this, but the pages still show up in the Zen Sitemap...

    The issue was in /includes/YOUR_TEMPLATE/tpl_site_map_default.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>
    Note the characters in RED states that if the status is LESS THAN OR EQUAL to '1' then display the items.

    I simply changed the '>' character to '=' so the line reads

    <?php if (DEFINE_PAGE_4_STATUS == '1') { ?>
    Last edited by khopek; 6 Jan 2010 at 01:05 AM.

  6. #6
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    813
    Plugin Contributions
    0

    Default Re: Remove page 2, page 3 from site map

    Wow this 7minute edit limit is ridiculous....I typed the characters WRONG in the above post.

    Here is the issue...with the correct LESS THAN characters.

    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>

  7. #7

    Default Re: Remove page 2, page 3 from site map

    Works beautifully, thank you very much!

 

 

Similar Threads

  1. Remove links at top of page
    By duckydoodles.com in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 17 Jan 2008, 02:41 PM
  2. How to remove alt tag of additional image in product info page
    By opelben in forum Basic Configuration
    Replies: 1
    Last Post: 11 May 2006, 06:14 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
  •