Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Evan 344 posts 99 karma points
    Mar 31, 2009 @ 16:23
    Evan
    0

    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

  • Evan 344 posts 99 karma points
    Mar 31, 2009 @ 16:48
    Evan
    0

    This is to display the XML version of the sitemap to submit to google....

  • Paul Sterling 718 posts 1534 karma points MVP 9x admin c-trib
    Mar 31, 2009 @ 18:26
    Paul Sterling
    0

    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

  • Evan 344 posts 99 karma points
    Mar 31, 2009 @ 18:29
    Evan
    0

    [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...

  • Daniel Lindstrom 454 posts 271 karma points
    Mar 31, 2009 @ 18:34
    Daniel Lindstrom
    0

    What happens if you modify the XSLT to start from umbraco.library:GetXMLAll() instead of $currentPage/ancestor-or-self::node [@level=1]

  • Evan 344 posts 99 karma points
    Mar 31, 2009 @ 18:37
    Evan
    0

    [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...

  • Paul Sterling 718 posts 1534 karma points MVP 9x admin c-trib
    Mar 31, 2009 @ 18:40
    Paul Sterling
    0

    The pages aren't, by any chance, protected are they? This sitemap will skip any nodes that are not publically accessible.

    -Paul

  • Evan 344 posts 99 karma points
    Mar 31, 2009 @ 18:41
    Evan
    0

    [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...

  • Paul Sterling 718 posts 1534 karma points MVP 9x admin c-trib
    Mar 31, 2009 @ 18:58
    Paul Sterling
    0

    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

  • Evan 344 posts 99 karma points
    Mar 31, 2009 @ 19:00
    Evan
    0

    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!

  • Evan 344 posts 99 karma points
    Mar 31, 2009 @ 19:10
    Evan
    0

    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">















  • Daniel Lindstrom 454 posts 271 karma points
    Apr 01, 2009 @ 08:33
    Daniel Lindstrom
    0

    [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.

  • Evan 344 posts 99 karma points
    Apr 01, 2009 @ 15:46
    Evan
    0

    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">











  • Evan 344 posts 99 karma points
    Apr 01, 2009 @ 16:43
    Evan
    0

    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">











  • Evan 344 posts 99 karma points
    Apr 01, 2009 @ 17:06
    Evan
    0

    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...

Please Sign in or register to post replies

Write your reply to:

Draft