You should be able to use the same code that generates your standard sitemap.
By making a copy of the code that generates the standard sitemap you should just need to change the elements, which are wrapping the content - And of course you need to strip the HTML etc. and put the url in the url attribute on the
Then you need to create a xmlsitemap template in the settings section -> templates and then add the sitemap macro on this template.
What is your scenario? Don't you want to feed the whole site to the Google sitemap? if you need to leave some pages out you can easily just make a "Hide from Google Sitemap" setting on your nodes, just like when you need to hide certain pages from site navigation :)
There really should not be too much work involved amending it to your needs since it's placed on it's own template, which can just be called like www.domain-1-com/xmlsitemap and www.domain-2.com/xmlsitemap and then it will give you the sitemap from the two different sites.
I usually just hardcode the first page in the feed before looping through all the other pages. It's not pretty, smart or clever but it works and gets the job done :)
Sure - I can't remember what the XSLT for this looks like though but I can imagine that there is a for-each loop somehwere. Right about it you just hardcode it like this
You can submit a single sitemap. I think you are after letting Google know that some pages are more important than others. This is done by setting the Priority and Change Frequency of a page.
As Jeavon mentioned SEOChecker could help you with this. You can even specify the Change Frequency and Priority on a document type level to avoid setting all these settings per page and helps you optimize the technical part of the site for SEO as well.
google sitemap suggestions
am seeking a sitemap i can submit to sites like google.. (xml)
is there a suitable package or a way to code this? i have a standard sitemap being created that just displays on my site as a list of links...
Hi Mark
You should be able to use the same code that generates your standard sitemap.
By making a copy of the code that generates the standard sitemap you should just need to change the elements, which are wrapping the content - And of course you need to strip the HTML etc. and put the url in the url attribute on the
Then you need to create a xmlsitemap template in the settings section -> templates and then add the sitemap macro on this template.
Does this make sense?
/Jan
I would also recommend you check out the SEO checker package, it's €99 per domain but does this and a whole lot more SEO goodness!
thanks
i will consider that.. i have tried an umbraco package called cultivsearchenginesitemap that seems to work ok....
there is a requirement to have sitemaps for particular sections too...
if i stick with the package it sets the start level (homepage) as
<xsl:with-param name="parent" select="$currentPage/ancestor-or-self::*[@level=1]"/>
Im not sure how i would amend this xslt line to start at a particular page (and its children) rather than the home page....
Hi Mark
What is your scenario? Don't you want to feed the whole site to the Google sitemap? if you need to leave some pages out you can easily just make a "Hide from Google Sitemap" setting on your nodes, just like when you need to hide certain pages from site navigation :)
/Jan
to be honest im not sure... im being asked to create a sitemap for each section to "promote" them...
but like you i thought a single sitemap submitted to google was sufficient...
Hi Mark
Hmm ok, so perhaps it's not really a sitemap that you need? Sounds more like you need to make a google product feed if it's because you need to promote products? https://support.google.com/merchants/answer/188494?hl=en
If it's just for making it easier for Google to see and index the website then it's probably a XML sitemap that you need.
What does the XML structure you need to serve to Google look like?
/Jan
its a standard xml sitempa, such as the one that the package cultivsearchenginesitemap is outputting...
Hi Mark
Yup, then the above is what you need.
There really should not be too much work involved amending it to your needs since it's placed on it's own template, which can just be called like www.domain-1-com/xmlsitemap and www.domain-2.com/xmlsitemap and then it will give you the sitemap from the two different sites.
/Jan
yes ive found that this specifies the actual page to start
<xsl:with-param name="parent" select="$currentPage/descendant-or-self::*[@id=1261]"/>
but while it shows all children of page 1261 it isnt including that actual page in the sitemap
Hi Mark
I usually just hardcode the first page in the feed before looping through all the other pages. It's not pretty, smart or clever but it works and gets the job done :)
/Jan
ok could you just show how you do that... im not that familiar with xslt....
Hi Mark
Sure - I can't remember what the XSLT for this looks like though but I can imagine that there is a for-each loop somehwere. Right about it you just hardcode it like this
/Jan
HI Mark,
You can submit a single sitemap. I think you are after letting Google know that some pages are more important than others. This is done by setting the Priority and Change Frequency of a page.
As Jeavon mentioned SEOChecker could help you with this. You can even specify the Change Frequency and Priority on a document type level to avoid setting all these settings per page and helps you optimize the technical part of the site for SEO as well.
The Configure SEO Checker Video explains how this all works.
Hope this helps,
Richard
is working on a reply...