The Super Secret Sitemap Trick

Did you know you can have a sitemap in your Joomla site without installing any additional extensions?

Really? How?

The menu module already does everything we need: it’s essentially a tree with all the items in the system. All we need to do is make it look like a component.

  1. Create a new article called ‘Sitemap’. In the body, type {loadposition sitemap} and save it.
    (screenshot)
  2. Make a new menu item called Sitemap, and point it to the article.
    (screenshot)
  3. In the module manager, make a new Menu module. Set ‘Menu name’ to the menu you want to display as a sitemap.
    (screenshot)
  4. In the position box, type ‘Sitemap’. Obviously this refers to the position we used earlier in the {loadposition…} tag
  5. Make sure you set ‘Always show submenu items’ and ‘Expand menu’ to yes, and save.
    (screenshot)
  6. Add more modules for each menu
  7. You should now have a nice sitemap in the frontend.
    (screenshot)
    You can style it with CSS or if you’re creative, you can add some folding using javascript.
  8. Post a link here to your sitemap, to show the world what you did

Got any quick’n’dirty tricks to do cool stuff in Joomla that was never intended to be used that way? Let us know!

Up next

TEXTman 3.1 brings advanced analytics and statistics to your Joomla articles

Get in-depth statistics about your Joomla articles with TEXTman 3.1.

Read more →

Continuous integration meets Joomlatools Console

Two new Joomlatools Console plugins to help get you started with automated testing for your own Joomla projects.

Read more →

The Joomlatools Dashboard Desktop App, now available for Windows!

The Joomlatools Dashboard, a complete 360° overview of your sites, activity, tickets, and downloads right from your desktop, now available for Microsoft Windows.

Read more →