Page 1 of 1

Problem with SitemapMgr

Posted: Fri Nov 10, 2017 3:19 pm
by (M)
After install en configure, I have a problem that only one off all the pages are show in ../assets/sitemaps/sitemap-pages.xml

There is no problem with ../assets/sitemaps/sitemap-news.xml it shows al the news items.

in config;
$config['permissive_smarty'] = 1;
$config['root_url'] = 'http://www.website.com';

PHP 7.0.23
CMSMS 2.2.3.1 and all modules updated
I have installed SitemapMgr 1.5.2
and also MleCMS 2.0-beta1

Re: Problem with SitemapMgr – has somebody same problem?

Posted: Fri Nov 10, 2017 3:42 pm
by (M)
I try it on another site with nearly the same settings;
PHP 7.0.23
CMSMS 2.2.3.1 and all modules updated
SitemapMgr 1.5.2
But no; MleCMS 2.0-beta1

After add "$config['permissive_smarty'] = 1;" to the config, the site front-end give a white page. The back-end isn't available anymore.

Without $config['permissive_smarty'] = 1; in config I get the warning in SitemapMgr but ../assets/sitemaps/sitemap-pages.xml shows me all the active pages.

Re: Problem with SitemapMgr – has somebody same problem?

Posted: Fri Nov 10, 2017 5:06 pm
by Rolf
white page == error 500 >> error log

I never used the MLE module and don't have the need to... So can't help you out here.

Re: Problem with SitemapMgr

Posted: Tue Dec 05, 2017 3:11 pm
by (M)
There is no problem with ../assets/sitemaps/sitemap-news.xml it shows al the news items.
When I use the module tag 'News' in a page there is a difference in what is generated.

{News summarytemplate='cms_template:Sitemap News'} gives;
.../news/82/-100/Werk-opgenomen-in-Nederlandse-Kunstkalender-2018.html 2017-11-09 weekly 0.6

.../assets/sitemaps/sitemap-news.xml gives;
<url>
<loc>
.../news/82/119/Werk-opgenomen-in-Nederlandse-Kunstkalender-2018.html
</loc>
<lastmod>2017-11-09</lastmod>
<changefreq>weekly</changefreq>
<priority>0.6</priority>
</url>

The first has '-100' and the second has '119'. 119 in the url is correct.

Other strange thing is that .../assets/sitemaps/sitemap-pages.xml give one result/page. But the are many more pages active.

Permissive Smarty is enabled in config.php

Re: Problem with SitemapMgr

Posted: Tue Dec 05, 2017 3:20 pm
by Rolf
In the News module you need to set a default detail page in "News Settings". Or you can set it in the {News ...} smarty tag in the SitemapMgr module page.

Pages is probably related to the MLE module.
Try to create multiple sitemaps, for each language one.
And use start_level in the {Navigator ...} tag

Re: Problem with SitemapMgr

Posted: Fri Dec 08, 2017 10:43 am
by (M)
Thanks again for your hints!

No default detail page was selected for news. When it was set up it works.

About the pages; the problem of not showing came because "Show in Menu:" was not active on the two pages 'nl' and 'en' in the page hierarchy. All pages under 'nl' and 'en' did have 'Show in Menu:' active, but were not shown in the sitemap.

By initially looking for the solution in the SitemapMgr templates, I have now made a nice sitemap page by means of copy templates.