• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: SitemapMgr with MLE multilingual issue and question
PostPosted: Thu Jul 12, 2018 8:32 am 
Offline
Forum Members
Forum Members

Joined: Sat Aug 02, 2008 9:08 pm
Posts: 174
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!


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: SitemapMgr with MLE multilingual issue and question
PostPosted: Thu Jul 12, 2018 9:13 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 7591
Location: The Netherlands
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:
{Navigator start_element='2.1' show_root_siblings='1'}


grtz. Rolf

_________________
Image

Did my post help you solving a problem at your (customers) website and it saved you many hours of work? Great!! Consider buying me a cup of coffee in return! [ Click here ]



Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: SitemapMgr with MLE multilingual issue and question
PostPosted: Thu Jul 12, 2018 9:29 am 
Offline
Forum Members
Forum Members

Joined: Sat Aug 02, 2008 9:08 pm
Posts: 174
Thanks Rolf for your reply.

but actually the default SitemapMgr Pages template don't call Navigator:

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


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: SitemapMgr with MLE multilingual issue and question
PostPosted: Thu Jul 12, 2018 10:44 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 7591
Location: The Netherlands
Not in the template, but in the SitemapMgr Admin page

_________________
Image

Did my post help you solving a problem at your (customers) website and it saved you many hours of work? Great!! Consider buying me a cup of coffee in return! [ Click here ]



Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: SitemapMgr with MLE multilingual issue and question
PostPosted: Thu Jul 12, 2018 10:54 am 
Offline
Forum Members
Forum Members

Joined: Sat Aug 02, 2008 9:08 pm
Posts: 174
oohhh i didn't see this... thanks, it works now !!!


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosting Nation - Managed CMSMS Hosting