Zen Cart Logo
Forums / General Questions / Sitemap & ezpages integration

Sitemap & ezpages integration

Locked

Views: 2,925

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
15 May 2006, 1:41 AM
#1
heavenlynights avatar

heavenlynights

Zen Follower

Join Date:
Jan 2006
Location:
Australia
Posts:
303
Plugin Contributions:
0

Sitemap & ezpages integration

Hi all

Previous to v131, I had my info pages listed in my site map tpl_site_map_default.php. this is code from my v1.2.7 site, of course I will obviously be amending the new v1.3.1 file!

code below:

<li><?php echo BOX_HEADING_INFOPAGES; ?></li>
        <ul>
 <?php
   $content = '';
   for ($i=1; $i<=sizeof($page_query_list); $i++) {
     $content .= '<li><div align="left">';
     
     if($page_query_list[$i]['alt_url'] != '') {
       $content .= '<a href="' . zen_href_link($page_query_list[$i]['alt_url'], '', 'NONSSL', true, true, true) . '">' . $page_query_list[$i]['name'] . '</a>';
     }
     else {
       $content .= '<a href="' . zen_href_link(FILENAME_INFOPAGES, 'pages_id=' . $page_query_list[$i]['id']) . '">' . $page_query_list[$i]['name'] . '</a>';    
     }
     $content .= '</div></li>';    
   }
   echo $content;
 ?>
        </ul>   

Can anyone tell me what the correct code is to have the new ezpages incorporated into the site map. I am assuming that this can be easily done by amending the above code to reflect ezpages, but I am not sure what the proper name for ezpages is and if there is anything else that I should be placing in the tpl_site_map_default.php

Any help would be appreciated

TIA

15 May 2006, 10:49 PM
#2
heavenlynights avatar

heavenlynights

Zen Follower

Join Date:
Jan 2006
Location:
Australia
Posts:
303
Plugin Contributions:
0

Re: Sitemap & ezpages integration

Hi There

Still require some assistance. If would be great if someone could help. I personally don't think a sitemap is any good unless it shows all pages. (just my opinion) :(

1 Jun 2006, 1:22 PM
#3
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Sitemap & ezpages integration

It's very simple! I added this under the last information link (contact us)

for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) { ?>

<li><a href="<?php echo $var_linksList[$i]['link']; ?>"><?php echo $var_linksList[$i]['name']; ?></a></li>
1 Jun 2006, 9:44 PM
#4
pteglia avatar

pteglia

New Zenner

Join Date:
Jun 2006
Posts:
2
Plugin Contributions:
0

Re: Sitemap & ezpages integration

I imagine I am not doing it right, or I am editing the wrong file.

Which file am I supposed to put that simple line into? :)

And, isn't there supposed to be a <?php in front of it?

Thanks,

Pat

1 Jun 2006, 11:02 PM
#5
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Sitemap & ezpages integration

tpl_site_map_default.php in the templates directory

and I didn't give you all of it!

<?php for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) { ?> <li><a href="<?php echo $var_linksList[$i]['link']; ?>"><?php echo $var_linksList[$i]['name']; ?></a></li>
2 Jun 2006, 12:01 AM
#6
pteglia avatar

pteglia

New Zenner

Join Date:
Jun 2006
Posts:
2
Plugin Contributions:
0

Re: Sitemap & ezpages integration

Hehe, you must have the magic touch, or we are missing some code, because this is what I get after inserting that code in that file:

Parse error: parse error, unexpected $ in /home/content/l/i/t/littlepublish/html/includes/templates/template_default/templates/tpl_site_map_default.php on line 84

What do you think?

Thanks,

Pat

31 Jul 2006, 3:12 PM
#8
denliv avatar

denliv

Zen Follower

Join Date:
Jul 2004
Posts:
103
Plugin Contributions:
0

Re: Sitemap & ezpages integration

delia - almost, but no cupie doll...

<?php for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) { ?>
        <li><a href="<?php echo $var_linksList[$i]['link']; ?>"><?php echo $var_linksList[$i]['name']; ?></a></li>
        <?php } ?>
6 Aug 2006, 2:46 PM
#9
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Sitemap & ezpages integration

Gerard:

Check out the following thread http://www.zen-cart.com/forum/showthread.php?t=32801&highlight=sitemap , it explains it all and it works like a charm.

Gerard:wink2:

For anyone else reaching the above, that thread doesn't quite tell the full story and as it's archived and therefore closed, the rest of it is...

Once that modification is done, your EZpages need to be set as on for sidebox with a sort order >0, even if you are not displaying the sidebox.

6 Aug 2006, 11:28 PM
#10
heavenlynights avatar

heavenlynights

Zen Follower

Join Date:
Jan 2006
Location:
Australia
Posts:
303
Plugin Contributions:
0

Re: Sitemap & ezpages integration

Hi All

There is now a download for this thanks to Gerard. download is for zen v1.3.0

Ezpages / Sitemap download

Much easier than fiddling with the code!!

3 Sep 2007, 8:56 PM
#11
khopek avatar

khopek

Totally Zenned

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

Re: Sitemap & ezpages integration

I just installed this mod and although my EZpage links that are in a sidebox show up, the majority of my EZpage links are in the footer, and I want these to show up in the Sitemap as well.

I have all EZpage links set ON for the sidebox and only the ones I actually want to show up in the sidebox have a sort order.