It’s taken a good part of an hour trying to find how to disable the administrator or front end template for Joomla.
So I thought I’d just make a post in an effort to turn this frustrated energy into something positive.
To display only the contents of the view on the page without being framed by a template, the tmpl variable needs to be set to “component”.
Something along the lines of having the following snippet in the controller method:
Either that, or adding “&tmpl=component” to the URL.
I remember doing it before, however it’s been a while.
All attempts at searching on how to do the above proved frustratingly impossible as the organic search results for google are filled with people asking how to “disable legacy” modes, “templates”, “modules”, “plugins”, how to make your joomla admin panel rock(!!!!) – not what I was looking for!
Anyway, it’s a rather simple, but not particulary obvious thing – I had to track down the code which I had written over 6 months ago to track that snippet down.
Hope this helps other Joomla! component developers
- Security Alert for Joomla 1.5.x Users
- Joomla 1.5.7 Security release is now available
- Linkr – a beautiful extension for Joomla 1.5
- Template View and View Helper Design Patterns in PHP (updated v2)
- Your “Legacy Code” – Quick HIDE!