Forums / Templates, Stylesheets, Page Layout / Adding new pages to Map Site

Adding new pages to Map Site

Locked
Results 1 to 9 of 9
This thread is locked. New replies are disabled.
14 Aug 2009, 19:54
#1
lackew avatar

lackew

Zen Follower

Join Date:
Aug 2009
Posts:
223
Plugin Contributions:
1

Adding new pages to Map Site

I am using Zen Cart 1.3.8a version and added custom pages to More Information side box. How do I get the new pages listed in Site Map and remove links to pages not being used?
thanks in advance
18 Aug 2009, 17:24
#2
lackew avatar

lackew

Zen Follower

Join Date:
Aug 2009
Posts:
223
Plugin Contributions:
1

Re: Adding new pages to Map Site

Well I figured out how to add my pages and now they are listed in site map but I cant get the links to direct to the correct pages. When the link in site map is clicked it brings 404 error!
18 Aug 2009, 17:26
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Posts:
9,707
Plugin Contributions:
6

Re: Adding new pages to Map Site

got a link?
12 Oct 2009, 16:25
#5
lackew avatar

lackew

Zen Follower

Join Date:
Aug 2009
Posts:
223
Plugin Contributions:
1

Re: Adding new pages to Map Site

I have added new define pages, they are working in information sidebox & Define Page Editor but Do Not show in Define Pages Status or SiteMap.
I used the About_us add-on to create them, which was great but I cant get them to display in SiteMap even after I copied the contact_us tags edited to about_us but still no luck. I found the EZpages add-on for SiteMap, is there one for Define Pages????
24 Oct 2009, 16:01
#6
hekai avatar

hekai

New Zenner

Join Date:
Oct 2009
Posts:
1
Plugin Contributions:
0

Re: Adding new pages to Map Site

Looks like most of the sitemap isn't auto-generated, so these pages will have to be added by hand. I added the 'About Us' contribution page as follows.

In includes\templates\MY_TEMPLATE\templates\tpl_site_map_default.php:

Add the following among the other similar lines (exact position will depend on where in the list you want the link to appear):

<li><?php echo '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . PAGE_ABOUT_US . '</a>'; ?></li>


In includes\languages\english\MY_TEMPLATE\site_map.php:

Add the following before the final '?>':

define('PAGE_ABOUT_US', 'About Us');


Hope that helps!
24 Oct 2009, 18:44
#7
lackew avatar

lackew

Zen Follower

Join Date:
Aug 2009
Posts:
223
Plugin Contributions:
1

Re: Adding new pages to Map Site

Thank You very much but unfortunately it still didnt work even after I inserted the tag
<?php } ?>
in front of your suggested code in tpl_site_map_default.php
let me know if you had any luck!
27 Oct 2009, 18:51
#8
lackew avatar

lackew

Zen Follower

Join Date:
Aug 2009
Posts:
223
Plugin Contributions:
1

Re: Adding new pages to Map Site

yippeeeeeeeeeee! final got it figured out. Here is the tag used that made About_Us show in site map. [HTML]<?php } ?>
<?php if (DEFINE_ABOUT_US_STATUS <= 'true') { ?>
<li><?php echo '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US .'</a>'; ?></li>[/HTML]

so if you have this mod change the <="1" to "true"
27 Oct 2009, 18:55
#9
lackew avatar

lackew

Zen Follower

Join Date:
Aug 2009
Posts:
223
Plugin Contributions:
1

Re: Adding new pages to Map Site

yippeeeeeeeeeee! final got it figured out. Here is the tag used that made About_Us show in site map. [HTML]<?php } ?>
<?php if (DEFINE_ABOUT_US_STATUS <= 'true') { ?>
<li><?php echo '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US .'</a>'; ?></li>[/HTML]

so if you have this mod change the <="1" to "true"