Forums / General Questions / Remove page 2, page 3 from site map

Remove page 2, page 3 from site map

Views: 10,631

Results 1 to 10 of 10
25 May 2006, 3:22 PM
#1
jplanet avatar

jplanet

New Zenner

Join Date:
Apr 2006
Posts:
46
Plugin Contributions:
0

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?

25 May 2006, 3:42 PM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

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

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

25 May 2006, 4:10 PM
#3
jplanet avatar

jplanet

New Zenner

Join Date:
Apr 2006
Posts:
46
Plugin Contributions:
0

Re: Remove page 2, page 3 from site map

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!

25 May 2006, 4:13 PM
#4
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Remove page 2, page 3 from site map

Glad to help

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

13 Aug 2008, 3:02 AM
#5
dontknowwhatimdoing avatar

dontknowwhatimdoing

Zen Follower

Join Date:
Aug 2008
Posts:
131
Plugin Contributions:
0

Re: Remove page 2, page 3 from site map

clydejones:

turn them off in:

admin -> configuration -> define page status

set them to 3 links off define text off

I was a newb at first thinking this fix didn't work, then I realized I was choosing "0" and not "3"... and of course only selecting "3" completely turns it off...

13 Aug 2008, 3:37 AM
#6
dontknowwhatimdoing avatar

dontknowwhatimdoing

Zen Follower

Join Date:
Aug 2008
Posts:
131
Plugin Contributions:
0

Re: Remove page 2, page 3 from site map

dontknowwhatimdoing:

I was a newb at first thinking this fix didn't work, then I realized I was choosing "0" and not "3"... and of course only selecting "3" completely turns it off...

Bad news for me.. even though the page status is set to "OFF" and define text is "OFF" for these pages (each are defined as "3"), they still appear in my TOC / Table of Contents.

I want to get most/ all of these off my TOC / Table of contents.

I wonder how to remove them?

New Products

Specials

* Gift Certificate FAQ
* Discount Coupons
* Newsletter Unsubscribe
5 Jan 2010, 11:58 PM
#7
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

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

<?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') { ?>
6 Jan 2010, 12:07 AM
#8
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

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. :oops:

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

<?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>
10 Jun 2011, 3:18 AM
#9
ebloger avatar

ebloger

New Zenner

Join Date:
Dec 2007
Posts:
35
Plugin Contributions:
0

Re: Remove page 2, page 3 from site map

Works beautifully, thank you very much!

27 Sep 2013, 11:46 PM
#10
flash avatar

flash

New Zenner

Join Date:
Mar 2004
Location:
Fort Collins, CO :: Play Hockey eh?!
Posts:
60
Plugin Contributions:
0

Re: Remove page 2, page 3 from site map

Wow, September 27th, 2013 and it still works like a charm. Kudos to you and THANKS!

Flash

Larry 'Flash' Alexander
FLASH HQ