SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Member
    Join Date
    Jun 2012
    Location
    Pomona, California, United States
    Posts
    7
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Should I add styling to my sitemap?

    Just curious, would anyone recommend that I throw my sitemap on a template and make it accessible through a link, lets say in the bottom nav, to consumers? Right now my sitemap is coded like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    <url>
    <loc>http://www.bluedotsafes.com/safes.html</loc>
    <lastmod>2012-06-14</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.5</priority>
    </url>

    ect.. ect..

    </urlset>

  2. #2
    Just Blow It bronze trophy
    DaveMaxwell's Avatar
    Join Date
    Nov 1999
    Location
    Mechanicsburg, PA
    Posts
    7,267
    Mentioned
    116 Post(s)
    Tagged
    1 Thread(s)
    No, but you could do a page which imports your sitemap and displays it in a styled manner.
    Dave Maxwell - Manage Your Site Team Leader
    My favorite YouTube Video! | Star Wars, Dr Suess Style
    Learn how to be ready for The Forums' Move to Discourse

  3. #3
    SitePoint Member
    Join Date
    Jun 2012
    Location
    Pomona, California, United States
    Posts
    7
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DaveMaxwell View Post
    No, but you could do a page which imports your sitemap and displays it in a styled manner.
    This would be only beneficial to the user I take it.. in other words, i wouldn't submit a styled sitemap.

    Thanks for the reply Dave!

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,208
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Quote Originally Posted by Blue Dot Safes View Post
    would anyone recommend that I throw my sitemap on a template and make it accessible through a link
    Answers to this are based on whether or not you want site users to see a sitemap. The kind of sitemap you cited above is only for search engines, so there's no point in linking to it publicly as far as search engines are concerned. But I would suggest building something different for users if you want them to have a site map.

  5. #5
    SitePoint Zealot Sogo7's Avatar
    Join Date
    May 2011
    Posts
    129
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    From personal experience with my own collection of sites that had human friendly
    site-map pages I can honestly say visitors to them were exceedingly rare. Visitors
    after all are supposed to be able to find things from the sites navigation menu(s).

    If you decide to use an online sitemap generator that scans your sites internal links,
    DO CHECK the final xml file just in case it's indexed things you do not want the public to find.
    Lovelogic.net Personal Projects Pit - Spammers welcome

  6. #6
    Just Blow It bronze trophy
    DaveMaxwell's Avatar
    Join Date
    Nov 1999
    Location
    Mechanicsburg, PA
    Posts
    7,267
    Mentioned
    116 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Sogo7 View Post
    From personal experience with my own collection of sites that had human friendly
    site-map pages I can honestly say visitors to them were exceedingly rare. Visitors
    after all are supposed to be able to find things from the sites navigation menu(s).
    That's true, but what makes sense to one may not make sense to someone else. A sitemap makes it easy/easier for someone to find in one stop. It's not that hard to do, and there are enough that do use it to make it worthwhile.
    Dave Maxwell - Manage Your Site Team Leader
    My favorite YouTube Video! | Star Wars, Dr Suess Style
    Learn how to be ready for The Forums' Move to Discourse

  7. #7
    SitePoint Enthusiast SitemapGenerator's Avatar
    Join Date
    Nov 2007
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Personally I would rather create a HTML sitemap that would pass link juice to your important pages (thus good for both humans and in some ways for distributing link juice) than styling an XML sitemap (since the XML sitemaps are meant for the search engines only)
    A1 Website Analyzer - Fix broken links, duplicate titles, custom text search, sculpt links
    A1 Sitemap Generator - Build xml, video, image, mobile, visual HTML/CSS sitemaps
    :: WebHelpForums.Net :: Support forum for the A1 tools suite.

  8. #8
    SitePoint Member
    Join Date
    Jun 2012
    Location
    Pomona, California, United States
    Posts
    7
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DaveMaxwell View Post
    That's true, but what makes sense to one may not make sense to someone else. A sitemap makes it easy/easier for someone to find in one stop. It's not that hard to do, and there are enough that do use it to make it worthwhile.
    It wasn't hard to do.. i just googled a sitemap creator, edited out the links i didnt want listed and threw link on my footer nav.. so the next question is why not?

  9. #9
    SitePoint Zealot
    Join Date
    Sep 2009
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I were you, I would use SimpleXML functions (or similar) in PHP to parse the existing sitemap content into HTML. This is, I think, what DaveMaxwell was referring to in his first answer to you.

    Once you have a short PHP script that fetches whatever data you want and displays those data in HTML, you have a fit-and-forget solution. That is an effective and fairly simple way of achieving what I think that you are aiming to do. I might be able to expand a little bit on the SimpleXML stuff if you want more info, although it's not something that I have used very often.

    It is possible to style XML using XSLT, but that (I think) would only be viewable directly in some browsers (and it may not be accessible).

  10. #10
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,189
    Mentioned
    191 Post(s)
    Tagged
    2 Thread(s)
    You could use XSLT to output HTML - but -
    think about what is in a Google sitemap.xml file
    Code XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
       <url>
          <loc>http://www.example.com/</loc>
          <lastmod>2005-01-01</lastmod>
          <changefreq>monthly</changefreq>
          <priority>0.8</priority>
       </url>
    </urlset>
    OK, so I can change that to a nifty HTML page. What do I have that I can work with?
    The "loc"ation certainly. But is it going to help visitors and would they even care when the page was last modified, how often it changes, or how important I think it is?

    I could still add a helpful description and more meaningful link text, but no friendly URLs for bookmarking.

    IMHO HTML site maps are a very good idea. But by the time you polish up the Google sitemap.xml you might as well have spent the time on another file no?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •