Mobile app version of vmapp.org
Login or Join
BetL925

: Is it possible to make an XML sitemap pretty enough to show to users? I wouldn't mind showing my XML sitemap to users if there were a way to make it human usable as opposed to just machine

@BetL925

Posted in: #Css #Sitemap #XmlSitemap

I wouldn't mind showing my XML sitemap to users if there were a way to make it human usable as opposed to just machine readable. Is it possible to:


Choose the colors and layout
Make the locations into links
Allow sorting based on the field (location, last modified, etc)


I was thinking that XSLT might be a possibility, but I haven't explored it. If it is possible, please provide a minimal example.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @BetL925

2 Comments

Sorted by latest first Latest Oldest Best

 

@Caterina187

Yes. Everything you ask for is possible. And here's an example XML sitemap file generated by the Drupal XML sitemap module with a little bit of configuration. Everything is done for you out of the box.
softkube.com/sitemap.xml
If you check the code of the XML file there's a link to an XSL and inside that file you can see the code with references to JS and CSS files and more or less similar to an HTML file.

The above you get almost free (with little config that is) with Drupal and its XML sitemap module. Now check this:
softkube.com/sitemap
This is custom made code we wrote to automatically display all the pages (blog posts, portfolio items, etc) in a user friendly sitemap format. I'm not aware of an automated way to go about this as this tends to be site specific. In my opinion, this is more user friendly and also keeps the website's navigation and footer and everything.

Hope this helps and good luck.

10% popularity Vote Up Vote Down


 

@Kaufman445

Of course. XML is just XML and can be served as XHTML by using XSL if you wish and styled with CSS.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme