Thread: Site Map

Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2009
    Posts
    31
    Plugin Contributions
    0

    Default Site Map

    Can someone please give a simple explanation of how the site map is configured. I see in many places the term " the site map generated automagically in Zen Cart " If it is generated automagically, then what, where and why will any php files need to be edited.

    My specific problem is that the site map that is rendered on my site is not the same as the contents. It only show the main categories and a few page that are not displayed on site.

    Anyone's help will really be appreciated.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Site Map

    When you refer to "site map", are you talking about your_site.com/index.php?main_page=site_map ? Or are you referring to something else?

    What's your URL?
    Please click Reply below and answer all the questions in the Posting Tips section.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Apr 2009
    Posts
    31
    Plugin Contributions
    0

    Default Re: Site Map

    Yes, I am referring to index.php?main_page=site_map. The web site is www.committeetounelectobama.com

    Thanks for your help.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,873
    Plugin Contributions
    96

    Default Re: Site Map

    The file /includes/templates/YOUR_TEMPLATE/templates/tpl_site_map_default.php controls the formatting of that page. I'm guessing that some of the information you're looking to remove are the Advanced Search/New Products/.../Reviews links -- you'll need to edit this PHP file to remove those (if it's not in the YOUR_TEMPLATE directory yet, copy the default file from /includes/templates/template_default/templates before editing).

    Good Luck!

  5. #5
    Join Date
    Apr 2009
    Posts
    31
    Plugin Contributions
    0

    Default Re: Site Map

    Thanks for your help. I can edit the file you mentioned without any problems.

    Can you tell me, what and how does ZC automatically add links to the site page?

    Thanks

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,873
    Plugin Contributions
    96

    Default Re: Site Map

    On line 30 of the 1.5.0 version of tpl_site_map_default.php:
    Code:
        <div id="siteMapList"><?php echo $zen_SiteMapTree->buildTree(); ?>
    That's a call to a function in /includes/classes/site_map.php ...

 

 

Similar Threads

  1. site map
    By Jay_Cubs in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Nov 2009, 08:30 PM
  2. Installed Advanced Site Map - Now I have Two Site Maps???
    By grafx2g in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Apr 2009, 03:10 PM
  3. Site Map
    By Chezz in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 18 Mar 2009, 12:40 PM

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