I want to set up my template so it will display different layout depending on what component is being used on current page. How to check for this?
For Joomla 3.x
While the code from the other answer will work,
For example, if you are displaying an Article and use the above code, it will output
For Joomla 2.5
We can check by getting the URL parameters, using the