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?
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?
turn them off in:
admin -> configuration -> define page status
set them to 3 links off define text off
Works beautifully, thank you very much!Originally Posted by clydejones
Glad to help
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
Note the characters in RED states that if the status is LESS THAN OR EQUAL to '1' then display the items.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>
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.
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>
Works beautifully, thank you very much!
Bookmarks