View module positions on a Joomla site with ?tp=1

Written by on December 16, 2009 in Core tips - 9 Comments

So, you have a Joomla site, but you can’t seem to figure out what position a module is situated into on your site.

Maybe you are looking at template companies demo and want to understand how they layed it out? Perhaps you are just a snoop. :)
Well it’s easy peasy to do this. Just add ?tp=1 to the end of a Joomla url, preferably a non SEF url.
You will then be able to see all the published modules on that page.

Here are a few examples.

You see how that last links layout looks all fancy?  Thats because that site is powered by Morph.  In Morph you can actually bring up a  toolbar on your website frontend and easily enable or disable stuff like module positions or turn on or off the sites javascript.  Pretty cool stuff.
Want to disable this functionality for some reason?  Check out this post.

About the Author

Matthew King is the excessively caffeinated head of customer service and system administrator for JoomlaJunkie. He loves paintball and dry humor. Matt also sells web hosting and does website design at ColumbusGEEK.com. He is based in Columbus, Ohio (USA).

9 Comments on "View module positions on a Joomla site with ?tp=1"

  1. Jeff Jones December 16, 2009 at 6:40 pm · Reply

    That is a GREAT tip, thanks!

  2. Chris December 18, 2009 at 2:12 am · Reply

    Something you forgot to mention Matt, one of Morphs little recent additions is the ability to turn this off in Configurator – so if you want to prevent snoops from seeing how you have structured your site, you simply disable the tp=1 option. Easy peasy ;)
    .-= Chris´s last blog ..Morph updated – new versions across the board =-.

  3. Hans Kuijpers January 6, 2010 at 4:39 pm · Reply

    Since not everyone wants their module positions to be viewed there is a way to hide it. In a production website no one should see the module positions… it’s not of anyone’s business.

    add the following to your .htaccess file
    ########## Start ?tp=1 prevention
    #
    RewriteCond %{QUERY_STRING} tp=(.*)
    RewriteRule ^(.*)$ index.php [F,L]
    #
    ########## End ?tp=1 prevention

  4. matt January 6, 2010 at 4:57 pm · Reply

    That’s a awesome tip Hans. Thanks for that contribution.

    Just to play devils advocate here…..what is the harm in people being able to see your module positions? I fail to see the security risk, but I would like your take on it.

  5. Sibylle September 8, 2010 at 10:09 am · Reply

    I think that there’s no security risk with it Matt.

Trackbacks for this post

  1. How to disable ?tp=1 in Joomla | Joomla Tips
  2. Where is that Joomla module published? 3 simple ways to find out. | ProThemer Team Blog
  3. How to disable ?tp=1 in Joomla | ColumbusGEEK aka Matt King | Website design, hosting and marketing.
  4. How to disable ?tp=1 in Joomla | World Web

Leave a Comment