How to display the component only

Posted by: admin in TutorialJoomla 1.5Component on  

Here's another great but not so well known feature of Joomla 1.5. There is an easy way to view only your component on your joomla site, without any modules or css styles from your template? Just take a look at the url in the address bar of your browser. If there is already a question mark in your url, add '&tmpl=component', otherwise you can add '?tmpl=component'. If you try it on this site, you will still see some styling, because the css-files of the component are loaded, only these of the template are skipped.

This feature can be interesting if you want to add a 'print' button to allow your users to print only the content of your component. For Joomla template developers, it can also be interesting to isolate the component.

 If you really want to remove all styling from your component, there is another way to do this. Add '?no_html=1'or '&no_html=1' to your url. In this case, even the styling included in the component will be skipped.

Comments (10)Add Comment
Joomla 1?

written by zach, March 14, 2009
How can i achieve this with joomla 1?

written by Largo, March 23, 2009
I don't think this is possible with Joomla 1.0. One more reason to switch to Joomla 1.5
Can it be done programatically?

written by Mark Manners, April 11, 2009
Great tips, thank you very much. Although I do have a question:

Can you achieve the same results within the component?


written by Largo, April 12, 2009
I'm not sure I understand your question. Can you explain a bit more what you mean exactly?

written by Mark Manners, April 15, 2009
Can you set the no_html or tmpl settings within your own php code? For example, if you have a parameter in the URL, can you set those settings within your php code?

if ($view = 'data_only' ) {
// Set no_html =1;
// Set tmpl = component;
don't think so

written by Largo, April 16, 2009
I don't think that is possible. You could try to do it with a redirect where you add the parameter to the current url.

written by supra shoes, March 30, 2010
supra shoes
Thanks for sharing!Your articles it is wonderful!!
HTML template to Joomla Template Convertion

written by Maheswar Reddy, April 10, 2010
Iam trying to convert the HTML Template into Joomla Template.
Everything is fine,expect images are not displaying in the front end,one more problem is that top menu is not displaying...Please anybody can help..?
friendly url

written by petran, August 24, 2010
Hey !
I need this feature of &tmpl=component of joomla the problem is that I am using friendly urls on my site. Is it possible to do that.
display only 1 modul without template

written by Tobias, January 15, 2013
Hi i got a nice slider module for the frontpage and i want display only one module.
the slider modul how is this possible?

Write comment

security code
Write the displayed characters