-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not respect Mount Point #83
Comments
I made it more general. You can set excludeParameters in Typoscript. Now function shouldIncludePageInSitemap looks like this: ` foreach($this->excludeParameters as $valueParameter)
and function generateSitemapContent looks like this: |
I have multiple Domains with their own Rootpage in a T3 Installation. So i set for every Domain forceStartPid to the Pid of the Rootpage. There are Mountpoints in this Sitemap mounting to other Sides in another Domain. dd_googlesitemap did not get the right doctype. So i add to
/Classes/Generator/PageSitemapGenerator.php Function shouldIncludePageInSitemap
return !$pageInfo["no_search"] && !in_array($pageInfo["doktype"], $this->excludedPageTypes) && !$pageInfo["_MP_PARAM"];
And same Class Function generateSitemapContent
if (!$pageInfo['_MP_PARAM']) { $morePages = $GLOBALS['TSFE']->sys_page->getMenu($pageInfo['uid'], '*', '', '', false); $this->removeNonTranslatedPages($morePages); $this->pageList = array_merge($this->pageList, array_values($morePages)); unset($morePages); }
Is this ok and can you add it to the next Version?
Thx and greetings
Bernd
The text was updated successfully, but these errors were encountered: