I am using the Creative Website that Warren Created and I have most of it working, but my sitemap is only returning the sitemap link, no other links in my site. My site tree is set up as such:
Index
--About us
--Partners
Contact
--Thank You
Sitemap
[quote=daniel_l]What happens if you modify the XSLT to start from umbraco.library:GetXMLAll() instead of $currentPage/ancestor-or-self::node [@level=1]
[/quote]
Keep getting errors when I try and do that...
[quote=psterling@homax]The pages aren't, by any chance, protected are they? This sitemap will skip any nodes that are not publically accessible.
-Paul[/quote]
No they are all accessiable, 2 of them are hidden (umbrocoNaviHide) but the rest are visible. I think it has something to do with the way it is structured, since it is:
index
--sub1
--sub2
contact
--thanks
sitemap
Is 'index' your root node? From the example you provided it looks as though you have index, contact, and sitemap all at the same level - which would explain why you only see the 'sitemap' node in the generated map.
The convention is that you have a single root node per site (index) and all other nodes are children of the root. This is the structure that facilitates running multiple sites in a single Umbraco installation.
that is how it is structured, that way when the client wants to make a new page, they can create a page with index as the root and only have textPage be the avaliable doctype, the less confusing the better for them!
[quote=psterling@homax]Is 'index' your root node? From the example you provided it looks as though you have index, contact, and sitemap all at the same level - which would explain why you only see the 'sitemap' node in the generated map.[/quote]
Yes, and starting the node iteration from umbraco.library:GetXMLAll() would get around this problem. I've had the same issue.
Made another step, now I can get index and all of its sub pages, all that is left is for me to index google-sitemap.aspx and the html sitemap.aspx that are not under index. Here is the code I have right now.
I finally got it to work and show everything (almost, one or two more tweaks and it should be there) now after all of this here is my stupid question for the day. I always use an XML sitemap generator to submit the XML sitemap to google, do I do the same thing but submit the aspx page? I am just trying to see what to do with the google sitemap I just generated since it is in aspx form...
Need help with my sitemap
I am using the Creative Website that Warren Created and I have most of it working, but my sitemap is only returning the sitemap link, no other links in my site. My site tree is set up as such:
Index
--About us
--Partners
Contact
--Thank You
Sitemap
And my sitemap XSLT is as follows:
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" exclude-result-prefixes="msxml
umbraco.library">
All that is displayed on the page is http://mysite.com/sitemap.aspx2009-03-31T09:42:56+00:00
This is to display the XML version of the sitemap to submit to google....
Here's a Google Friendly sitemap we use on our sites that includes blog posts - it 'just works':
[code]
<>
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" exclude-result-prefixes="msxml
umbraco.library">
[/code]
-Paul
[quote=psterling@homax]Here's a Google Friendly sitemap we use on our sites that includes blog posts - it 'just works':
[code]
<>
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" exclude-result-prefixes="msxml
umbraco.library">
[/code]
-Paul[/quote]
Gives me the same error, only get the one page...
What happens if you modify the XSLT to start from umbraco.library:GetXMLAll() instead of $currentPage/ancestor-or-self::node [@level=1]
[quote=daniel_l]What happens if you modify the XSLT to start from umbraco.library:GetXMLAll() instead of $currentPage/ancestor-or-self::node [@level=1]
[/quote]
Keep getting errors when I try and do that...
The pages aren't, by any chance, protected are they? This sitemap will skip any nodes that are not publically accessible.
-Paul
[quote=psterling@homax]The pages aren't, by any chance, protected are they? This sitemap will skip any nodes that are not publically accessible.
-Paul[/quote]
No they are all accessiable, 2 of them are hidden (umbrocoNaviHide) but the rest are visible. I think it has something to do with the way it is structured, since it is:
index
--sub1
--sub2
contact
--thanks
sitemap
All I am getting is the sitemap...
Is 'index' your root node? From the example you provided it looks as though you have index, contact, and sitemap all at the same level - which would explain why you only see the 'sitemap' node in the generated map.
The convention is that you have a single root node per site (index) and all other nodes are children of the root. This is the structure that facilitates running multiple sites in a single Umbraco installation.
So, the expected structure would be:
index
--sub1
--sub2
-contact
--thanks
-sitemap
-Paul
Content
--Index
----sub1
----sub2
--contact
----Thanks
--sitemap
that is how it is structured, that way when the client wants to make a new page, they can create a page with index as the root and only have textPage be the avaliable doctype, the less confusing the better for them!
This html sitemap works fine, but I can not get it to work with the xml google sitemap at all.
]>
<>
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library"
exclude-result-prefixes="msxml umbraco.library">
[quote=psterling@homax]Is 'index' your root node? From the example you provided it looks as though you have index, contact, and sitemap all at the same level - which would explain why you only see the 'sitemap' node in the generated map.[/quote]
Yes, and starting the node iteration from umbraco.library:GetXMLAll() would get around this problem. I've had the same issue.
I am getting closer, this will get me index, now I just need to get the rest.....
<>
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" exclude-result-prefixes="msxml
umbraco.library">
Made another step, now I can get index and all of its sub pages, all that is left is for me to index google-sitemap.aspx and the html sitemap.aspx that are not under index. Here is the code I have right now.
<>
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" exclude-result-prefixes="msxml
umbraco.library">
I finally got it to work and show everything (almost, one or two more tweaks and it should be there) now after all of this here is my stupid question for the day. I always use an XML sitemap generator to submit the XML sitemap to google, do I do the same thing but submit the aspx page? I am just trying to see what to do with the google sitemap I just generated since it is in aspx form...
is working on a reply...