Showing Component Area Without Modules

Occasionally, you will need to load just the component area of a certain page without all of the modules and other HTML that surrounds the component.

In previous versions of Joomla, you could do this by using index2.php instead of index.php. People may not be aware, but index2.php has been deprecated in Joomla 1.5 and does not even exist in Joomla 1.6.

Instead of using index2.php, you should start adding the following to your URLs:

tmpl=component

This gives you the ability to isolate just the primary content on a page.

Get Using Joomla now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.