Developer forum

Forum » CMS - Standard features » Sitemap with page meta title and description?

Sitemap with page meta title and description?

Per Søgaard
Reply

Can I make a sitemap write the meta title and description for each page?

What should be added to the xslt?


Replies

 
Nicolai Høeg Pedersen
Reply

The sitemap is based on the navigation, so you have all the same data available. That means that the title is there, but no description.

Simply add <xsl:value-of select="@Title" disable-output-escaping="yes"/> where you have the <xsl:value-of select="@MenuText" disable-output-escaping="yes"/> output.

You can use &savexml=true to save the data of the navigation and see which attributes are available (do it for a navigation).

If you create an item type and add it as page properties, those fields will also be available in the XML. In that way you can add a description field to your item type and reach it like that.

BR Nicolai

 
Per Søgaard
Reply

Thanks.
What i would like is to get an overview of the SEO meta tags of all pages on the website.

The current tools only shows this for one page at a time.
I think there is a need of a tool to work with SEO in a much more effective way. And an overview is a start but at best it should be much more than that.

 

You must be logged in to post in the forum