Joomla disable parent template?

I am creating a Facebook canvas application and this code is supposed to be generated in a Joomla component. I only need to output the content, excluding the default layout. any ideas?

+2


source to share


2 answers


You can create a view called view.facebook.php (instead of view.html.php), it will be called when index2.php? ..... & view = facebook is attached to the url.



or you can call die () right after your code is executed, but I need to explain that this is not ellegant?

+2


source


To display only the content of the view on the page without being framed by the template, the tmpl variable must be set to "component".

JRequest::setVar('tmpl', 'component');

      



For more information see this .

+9


source







All Articles