Skip to content

Commit

Permalink
Merge pull request #35 from kdambekalns/skip-shortcuts
Browse files Browse the repository at this point in the history
BUGFIX: Exclude shortcuts from XML sitemap
  • Loading branch information
kdambekalns authored May 24, 2017
2 parents 7519b46 + fc6b013 commit 42df840
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Resources/Private/Templates/Page/XmlSiteMap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
</urlset>
<f:section name="itemsList">
<f:for each="{items}" as="item">
<f:if condition="{item.node.nodeType.name} != 'TYPO3.Neos:Shortcut'">
<f:if condition="{item.node.properties.metaRobotsNoindex} == 0">
<url>
<loc>{neos:uri.node(node: item.node, format: 'html', absolute: true)}</loc>
Expand All @@ -14,6 +15,7 @@
<priority>{f:if(condition: item.node.properties.xmlSitemapPriority, then: item.node.properties.xmlSitemapPriority, else: '0.5')}</priority>
</url>
</f:if>
</f:if>
<f:if condition="{item.subItems}"><f:render section="itemsList" arguments="{items: item.subItems}"/></f:if>
</f:for>
</f:section>

0 comments on commit 42df840

Please sign in to comment.