Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jan 2006
    Location
    Australia
    Posts
    330
    Plugin Contributions
    0

    Default 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:

    Code:
    <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

  2. #2
    Join Date
    Jan 2006
    Location
    Australia
    Posts
    330
    Plugin Contributions
    0

    Default 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)

  3. #3
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,371
    Plugin Contributions
    23

    Default 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>

  4. #4
    Join Date
    Jun 2006
    Posts
    2
    Plugin Contributions
    0

    Default 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

  5. #5
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,371
    Plugin Contributions
    23

    Default 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>
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  6. #6
    Join Date
    Jun 2006
    Posts
    2
    Plugin Contributions
    0

    Default 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

  7. #7
    Join Date
    Oct 2005
    Location
    Qld Australia
    Posts
    156
    Plugin Contributions
    1

    Default Re: Sitemap & ezpages integration

    Check out the following thread http://www.zen-cart.com/forum/showth...hlight=sitemap , it explains it all and it works like a charm.

    Gerard

  8. #8
    Join Date
    Jul 2004
    Posts
    130
    Plugin Contributions
    0

    Default 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 } ?>

  9. #9
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Sitemap & ezpages integration

    Quote Originally Posted by Gerard
    Check out the following thread http://www.zen-cart.com/forum/showth...hlight=sitemap , it explains it all and it works like a charm.

    Gerard
    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.
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  10. #10
    Join Date
    Jan 2006
    Location
    Australia
    Posts
    330
    Plugin Contributions
    0

    Default 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!!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. How Do I Show EZPages in The Sitemap?
    By bumba000 in forum General Questions
    Replies: 4
    Last Post: 1 Jul 2009, 04:26 PM
  2. Ezpages Sitemap 1.3.7
    By haredo in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 17 Apr 2008, 06:39 PM
  3. ezpages not showing up in sitemap
    By humbll in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Aug 2007, 11:14 PM
  4. Google sitemap 1.3.8: how to solve ezpages bug?
    By monak83 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 1 May 2007, 08:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg