SitemapMgr with MLE multilingual issue and question

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Mich-adg
Forum Members
Forum Members
Posts: 199
Joined: Sat Aug 02, 2008 9:08 pm

SitemapMgr with MLE multilingual issue and question

Post by Mich-adg »

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!
User avatar
Rolf
Dev Team Member
Dev Team Member
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: SitemapMgr with MLE multilingual issue and question

Post by Rolf »

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:

Code: Select all

{Navigator start_element='2.1' show_root_siblings='1'}
grtz. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Mich-adg
Forum Members
Forum Members
Posts: 199
Joined: Sat Aug 02, 2008 9:08 pm

Re: SitemapMgr with MLE multilingual issue and question

Post by Mich-adg »

Thanks Rolf for your reply.

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>
User avatar
Rolf
Dev Team Member
Dev Team Member
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: SitemapMgr with MLE multilingual issue and question

Post by Rolf »

Not in the template, but in the SitemapMgr Admin page
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Mich-adg
Forum Members
Forum Members
Posts: 199
Joined: Sat Aug 02, 2008 9:08 pm

Re: SitemapMgr with MLE multilingual issue and question

Post by Mich-adg »

oohhh i didn't see this... thanks, it works now !!!
Post Reply

Return to “Modules/Add-Ons”