Sitemap Style logo Sitemap Viewer Integration


I designed the Sitemap Viewer to be easily integrated into any website.

These are the parameters that you can pass to customize it:

Parameter Description
url The full URL of your sitemap.xml file. (required)
exit The URL that links back to your website. Optional: it will default to the root of the url parameter.
sort How the entries in the tree should be sorted. One of:
  • name - by name (default)
  • url - by URL
  • dirfirst - by name, but directories first
  • original - in the order they appear in the sitemap.xml
transform How page names should be transformed for display in the tree. One of:
  • initialcap - Uppercase the first letter, leave everything else unchanged (default)
  • original - Keep exactly what is in the sitemap.xml
  • titlecase - Uppercase the first letter of each word, lowercase the rest of each word
showmode Set to 1to show the light/dark mode switcher
showlanguage Set to 1to show the language switcher
showexit Set to 1to show exit toolbar button (goes to the URL specified by exit)
showdebug Set to 1to a toolbar button to view the logs. You do not want to have this on in production, but it can be useful when troubleshooting