
Originally Posted by
a_berezin
Andrew, thank you for your answer. Yes, I read http://www.sitemaps.org (before posting my questions) and I understand that:
- SitemapXML v.2 doesn't replace the Site Map facility as comes prepackaged in the existing Zen Cart ver. 1.3.8a
- SitemapXML v.2 is for submission to search engines only. It has no visual output component.
- SitemapXML v.2 doesn't support turning off selectively certain pages from sitemap. It does support other aspects per type of pages (e.g. Products vs. Cateogries vs. EZ-Pages).
Still, I wonder whether it would be better to have these two features merged (Zen Cart's visible site map with your XML based map).
BTW, I believe there is a bug in includes/modules/pages/sitemapxml/sitemapxml_ezpages.php line 93:
PHP Code:
if ($link_base_url != $zen_SiteMapXML->base_url) {
$zen_SiteMapXML->message(sprintf(TEXT_ERRROR_EZPAGES_OUTOFBASE, $page_query->fields['alt_url'], $link) . ' -- ' . $link_base_url . ' != ' . $zen_SiteMapXML->base_url . '<br />', 'error');
$link = false;
}
For EZ-Pages links that do not follow the typical URL of
http://<domain.com>/store/index.php?main_page=page&id=3
But rather have an "external" link like:
http://<domain.com>/store/index.php?main_page=shippinginfo
The aforementioned line produces an error:
EZ-Page ignored (out of base url)
When in fact the only difference between $link_base_url and $zen_SiteMapXML->base_url is a trailing slash.
This results in not indexing all EZ-Pages, but rather only part of them.
I can probably fix the bug myself but I believe that you will do a better job, as you are the designer of this add on.