Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2010
    Posts
    5
    Plugin Contributions
    0

    Default Disabling "Page 2", "Page 3" and "Page 4" in Site Map listing?

    I need to disable "Page 2", "Page 3" and "Page 4" from appearing in the Site Map listing. I have already gone into the Admin home>Configuration>Define Page Status for these pages set the value to 0.

    I had initially setup my custom "define_page_2", "define_page_3" and "define_page_4" via includes/languages/english/html_includes/CUSTOM/ and now I moved away from that method and chose instead to use the EZ-pages.

    I will greatly appreciate your comments.


    Version 1.3.8a
    Not an upgrade
    No add-ons
    Ernesto

  2. #2
    Join Date
    May 2009
    Posts
    18
    Plugin Contributions
    0

    Default Re: Disabling "Page 2", "Page 3" and "Page 4" in Site Map listing?

    \includes\templates\template_default\templates\tpl_site_map_default

    Find page 2, page 3, page 4 near the bottom, looks like this
    <?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 } ?>


    Now change the < to > after status
    (DEFINE_PAGE_2_STATUS <= '1')
    to
    (DEFINE_PAGE_2_STATUS >= '1')

    That will remove the page from the site map

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,872
    Plugin Contributions
    96

    Default Re: Disabling "Page 2", "Page 3" and "Page 4" in Site Map listing?

    ...or you could disable them without changing code by going to your admin Configuration->Define Page Status and set the status for page 2-4 to "3" (Link off, text off)

  4. #4
    Join Date
    Jan 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Disabling "Page 2", "Page 3" and "Page 4" in Site Map listing?

    I prefer lat9's recommendation 100x times over! That absolutely did the job. For some reason I thought the number "0" meant "off" in the programming world. Silly me.

    Thanks!
    Ernesto

  5. #5
    Join Date
    May 2009
    Posts
    18
    Plugin Contributions
    0

    Default Re: Disabling "Page 2", "Page 3" and "Page 4" in Site Map listing?

    Quote Originally Posted by lat9 View Post
    ...or you could disable them without changing code by going to your admin Configuration->Define Page Status and set the status for page 2-4 to "3" (Link off, text off)
    Hmm, ya that is a bit odd not off at 0. Thanks, this makes things a bit easier. Is there a simpler way to change the name of page 2,3,4 in the admin area to something more friendly or do we still have to go through code for that?

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Disabling "Page 2", "Page 3" and "Page 4" in Site Map listing?

    Quote Originally Posted by rich phitzwell
    Is there a simpler way to change the name of page 2,3,4 in the admin area to something more friendly or do we still have to go through code for that?
    These are define pages...Changing what is displayed to the user in the sidebox is in english.php
    This does not alter code or what address is in the browser
    To correctly alter this one needs to create a new define page and this involves about 8 files/edits
    The about us module or the additional more info pages module can be referenced for the files involved and steps to create your own
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,872
    Plugin Contributions
    96

    Default Re: Disabling "Page 2", "Page 3" and "Page 4" in Site Map listing?

    Quote Originally Posted by rich phitzwell View Post
    Is there a simpler way to change the name of page 2,3,4 in the admin area to something more friendly or do we still have to go through code for that?
    As Kobra wrote, you can change the text displayed in the sideboxes (and site_map and page_not_found pages) by editing the english.php file.

    An alternate way to change the page name as displayed in the browser bar (e.g. www.your-site.com/index.php?main_page=page_2) would be to install one of the SEO add-ons available in the Free Software Add-ons section. I'm using the Ceon URI Mapping mod on one of my sites, and it would allow you to set your store up so that page_2 was shown in the browser bar as www/your-site.com/whatever_you_wanted.

 

 

Similar Threads

  1. How to remove ellipses ("...") after "All Products" and "New Products" on home page?
    By jthurman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 May 2010, 03:30 PM
  2. Replies: 2
    Last Post: 11 Feb 2010, 09:13 PM
  3. "Orders" Page in Admin - change "Delivered" to "Shipped"?
    By ktessitore in forum Managing Customers and Orders
    Replies: 3
    Last Post: 21 Feb 2009, 06:25 AM
  4. Replies: 1
    Last Post: 29 Jan 2009, 12:38 AM
  5. How do I disable "Page 1, Page 2 and Page 3" from the "Site Menu"?
    By MagicMan in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Dec 2007, 03:34 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