Thought this would be straight forward enough. For the site map, I would like to exclude the document 'NewsItems'. Taken the standard sitemap xslt below and updated the for each to:
<xsl:for-each select="$parent/* [@isDoc and @level <= $maxLevelForSitemap and name() != 'NewsItem'] ">
Although this removes the news items. All proceeding siblings of the main news page (parent of news items) are nested under the news page. Producing the following mark-up:
So what you are trying to achieve is actually to show every node in the content tree on the same level? Or just the items that is children of the excluded page?
Could you maybe show us the structure of your content nodes?
Sorry, I want to show every node (excluding the news items) for all levels. Which is why I thought the sitemap xslt would be a good starting point, as it shows all content nodes.
Stucture is along the lines of :
home about subpages team bio ... Team News news items ... ... ... products subpages ... news news items .... terms privacy ...
So in the above stucture the news items for news and team news would not be shown. The news and team news use a different document type an dso will be included in the site map.
Excluding document type from site map
Hi All,
Thought this would be straight forward enough. For the site map, I would like to exclude the document 'NewsItems'. Taken the standard sitemap xslt below and updated the for each to:
Sitemap xslt:
Although this removes the news items. All proceeding siblings of the main news page (parent of news items) are nested under the news page. Producing the following mark-up:
Which should be:
Have removed the umbracoNaviHide options, as I want to excluded items by datatype.
Thanks in advance
Eddie
Hi Eddie.
So what you are trying to achieve is actually to show every node in the content tree on the same level? Or just the items that is children of the excluded page?
Could you maybe show us the structure of your content nodes?
/Kim A
Hi Kim,
Sorry, I want to show every node (excluding the news items) for all levels. Which is why I thought the sitemap xslt would be a good starting point, as it shows all content nodes.
Stucture is along the lines of :
home
about
subpages
team
bio
...
Team News
news items
...
...
...
products
subpages
...
news
news items
....
terms
privacy
...
So in the above stucture the news items for news and team news would not be shown. The news and team news use a different document type an dso will be included in the site map.
Thanks,
Eddie
is working on a reply...