Xtremax - Web Design

20 Mar, 2009

Deciphering the Winding Paths of Joomla

Posted by: Mr Otter In: Joomla

Well, Tweety asked me a question.  An administrator component like Media had many layouts.  How can we know which layout just based on the url?

http://xtremax.com/itemacpherson/administrator/index.php?option=com_media&view=mediaList&tmpl=component&folder=

I looked at the url.. and no.. there is no way.  Internally, there are some codes which have actually set the layout, but it is not based on the core joomla framework.  By right, the url should have been more informative like:

http://xtremax.com/itemacpherson/administrator/index.php?option=com_media&view=mediaList&tmpl=component&layout=thumbs

It will point to the same codes, but this will be in compliant to the Joomla core framework without relying on strange little snippets of codes that set layouts..

To sum it all, 4 different parameters in a url will determine the automatic wiring of the different files from Joomla.

 

Parameter Description
controller used to determine the controller to call in the controller folder.

this is normally coded in the component entry point file.. and cannot really be said to be part of the main framework

view points to the relevant view.html.php
layout points to the relevant php in tmpl.  layout=default will point to default.php in tmpl, while layout=form will point to form.php in tmpl
Bookmark and Share

No Responses to "Deciphering the Winding Paths of Joomla"

Comment Form

Xtremax Web Design Portfolio

    Opera Estate Primary SchoolNational Association of Travel Agents SingaporeFUMIYAMA CORPORATIONEngineering Education PortalBOON HI-TECH SUPERSTORESingapore Tourism Board

About Xtremax

This is all about a group of hard-core web developers who go about rambling about their daily efforts to make the internet world a better and more accessible place.