You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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:
I made it more general. You can set excludeParameters in Typoscript. Now function shouldIncludePageInSitemap looks like this:
` foreach($this->excludeParameters as $valueParameter)
{
// check if one Parameter is TRUE
if ($pageInfo[$valueParameter]) {
$this->dontRenderPage = TRUE;
}
}
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: