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 1.0: Frontend article manager for Joomla

TEXTman simplifies managing articles from the frontend of your Joomla website.

Read more →

Joomlatools Framework 3.0 is released

Latest version of our Joomla extension framework is out

Read more →

Joomla updater is now supported

You can now use Joomla's one-click-update to get extension upgrades.

Read more →