Hi,
i have a site with MLE and 2 langs ( fr + en), root pages structure is:
- fr (section header) > subpages
- en (section header) > subpages
- error404 page
1. I tried to make a Pages Sitemap (default pages template of the mod) but the xml shows only the pages of the ENglish section (not the FR ones).
Is this a bug? Anything other to do to make it work?
2. Is it possible to make one xml sitemap for FR and one for EN pages? (recommended by a SEO professional...)
My Cmsms is 2.2.3.1 (permissive smarty is on) - SitemapMgr 1.5.1
Thx for any help!
SitemapMgr with MLE multilingual issue and question
Re: SitemapMgr with MLE multilingual issue and question
The best you create two separate sitemaps for the pages.
Just adapt parameters in the {Navigator ...} tag of your sitemap to the one you need for the language. Check your Core::Page template for the params.
Probably something like:
grtz. Rolf
Just adapt parameters in the {Navigator ...} tag of your sitemap to the one you need for the language. Check your Core::Page template for the params.
Probably something like:
Code: Select all
{Navigator start_element='2.1' show_root_siblings='1'}
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: SitemapMgr with MLE multilingual issue and question
Thanks Rolf for your reply.
but actually the default SitemapMgr Pages template don't call Navigator:
but actually the default SitemapMgr Pages template don't call Navigator:
Code: Select all
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{function name=Nav_sitemap}
{foreach $data as $node}
{page_attr key=searchable page=$node->id assign=isSearchable}
{if $node->type=='content' && !empty($isSearchable)}
<url>
<loc>{$node->url}</loc>
<lastmod>{$node->modified|date_format:'%Y-%m-%d'}</lastmod>
<changefreq>{math now=$smarty.now modified=$node->modified equation='(now-modified)/86400' assign='days'}{if $days < 2}hourly{elseif $days < 14}daily{elseif $days < 61}weekly{elseif $days < 365}monthly{else}yearly{/if}</changefreq>
<priority>{$level=$node->hierarchy|substr_count:'.'}{if $node->url|substr:0:-1 == {root_url}}1{elseif $level == '0'}0.8{elseif $level == '1'}0.6{elseif $level == '2'}0.4{else}0.2{/if}</priority>
</url>
{/if}
{if isset($node->children)}{Nav_sitemap data=$node->children}{/if}
{/foreach}
{/function}
{if isset($nodes)}{Nav_sitemap data=$nodes}{/if}
</urlset>
Re: SitemapMgr with MLE multilingual issue and question
Not in the template, but in the SitemapMgr Admin page
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: SitemapMgr with MLE multilingual issue and question
oohhh i didn't see this... thanks, it works now !!!