Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Site Map: Remove unwanted links?

Site Map: Remove unwanted links?

Locked

Views: 5,164

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
2 Jun 2006, 4:27 PM
#1
jfd avatar

jfd

New Zenner

Join Date:
May 2006
Posts:
18
Plugin Contributions:
0

Site Map: Remove unwanted links?

How do you go about removing or excluding the New Products, Specials and Reviews links on Site Map. I don't intend to utilize these pages, therefore I don't think their links need to display on the site map.

Thanks.

2 Jun 2006, 8:37 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Site Map: Remove unwanted links?

Have you tried turning these pages 'off' in the admin? Do they still show up on the site map if disabled?

2 Jun 2006, 9:32 PM
#3
jfd avatar

jfd

New Zenner

Join Date:
May 2006
Posts:
18
Plugin Contributions:
0

Re: Site Map: Remove unwanted links?

kobra:

Have you tried turning these pages 'off' in the admin? Do they still show up on the site map if disabled?

By turn "off" I assume you mean in the Layout Settings. I tried this and it didn't remove their respective site map links. Other ideas?

2 Jun 2006, 10:53 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Site Map: Remove unwanted links?

If you wish them not to appear on your site map, simply edit your template file and remove them:
includes/templates/YOURTEMPLATE/templates/tpl_site_map_default.php```php
<li><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCTS_NEW) . '">' . PAGE_PRODUCTS_NEW . '</a>'; ?></li>
<li><?php echo '<a href="' . zen_href_link(FILENAME_SPECIALS) . '">' . PAGE_SPECIALS . '</a>'; ?></li>
<li><?php echo '<a href="' . zen_href_link(FILENAME_REVIEWS) . '">' . PAGE_REVIEWS . '</a>'; ?></li>

3 Jun 2006, 3:07 AM
#5
jfd avatar

jfd

New Zenner

Join Date:
May 2006
Posts:
18
Plugin Contributions:
0

Re: Site Map: Remove unwanted links?

That did it. Thanks, DrByte!

BTW, I posted my Backup MySQL Database question if you care to take a gander: http://www.zen-cart.com/forum/showthread.php?t=37289

22 Aug 2007, 12:45 AM
#6
bahnstoermer avatar

bahnstoermer

New Zenner

Join Date:
Aug 2007
Posts:
94
Plugin Contributions:
0

Re: Site Map: Remove unwanted links?

JFD:

That did it. Thanks, DrByte!

BTW, I posted my Backup MySQL Database question if you care to take a gander: http://www.zen-cart.com/forum/showthread.php?t=37289

Hi,

I was looking to do this as well, but I think this may have changed with a new version of Zencart? That file doesn't seem to be in the same place and commenting out or deleting those lines caused errors. Sorry to be not so specific, I was just working on it a bit ago and don't want to reproduce them. If anyone can re-address this with the current version that would be great. For now I have just removed the "Site Map" link from the Information.php file so the site map isn't visible as a work around.

Thanks!

Alex

22 Aug 2007, 4:08 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Site Map: Remove unwanted links?

DrByte:

If you wish them not to appear on your site map, simply edit your template file and remove them:
includes/templates/YOURTEMPLATE/templates/tpl_site_map_default.php```php
<li><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCTS_NEW) . '">' . PAGE_PRODUCTS_NEW . '</a>'; ?></li>
<li><?php echo '<a href="' . zen_href_link(FILENAME_SPECIALS) . '">' . PAGE_SPECIALS . '</a>'; ?></li>
<li><?php echo '<a href="' . zen_href_link(FILENAME_REVIEWS) . '">' . PAGE_REVIEWS . '</a>'; ?></li>


> **Bahnstoermer:**
>
> I was looking to do this as well, but I think this may have changed with a new version of Zencart?  That file doesn't seem to be in the same place and commenting out or deleting those lines caused errors.  Sorry to be not so specific, I was just working on it a bit ago and don't want to reproduce them.  If anyone can re-address this with the current version that would be great.  For now I have just removed the "Site Map" link from the Information.php file so the site map isn't visible as a work around.

The code is still in the same file, in the same place even in v1.3.7.1.
What errors do you get?
What's the link to your site-map page ?
26 Aug 2007, 11:02 PM
#8
bahnstoermer avatar

bahnstoermer

New Zenner

Join Date:
Aug 2007
Posts:
94
Plugin Contributions:
0

Re: Site Map: Remove unwanted links?

DrByte:

The code is still in the same file, in the same place even in v1.3.7.1.
What errors do you get?
What's the link to your site-map page ?

DrByte,

Thanks for your reply - I think I'm going to leave this feature off now anyway since it won't show the "other half" of my site (all HTML at the moment, plan to convert it over to a CSS format once I have time to learn it better). I may revisit this later but just wanted to say thanks for offering to assist.

Alex