Fri, 29 August 2008
Home
Articles
Books
Search
Tools
Whois
Links
Sitemap
Contact us
Privacy policy
Home arrow Articles arrow Mambo arrow Mambo Template Explained

Mambo Template Explained PDF Print E-mail
Articles - Mambo
Article Index
Mambo Template Explained
Modules
Main body
Date and other functions
Main body

Main body or content of a page is loaded using mosMainBody() function. In this function, Mambo will decide which file should be loaded based on the value of the query string. Typically, every URL will have a query string variable called 'option'. For example:

Normal URL:
http://domain.com/index.php?option=com_contact&Itemid=73

Search engine-friendly URL:
http://domain.com/component/option,com_contact/Itemid,73/

In the above example, Mambo will load the default page of component 'com_contact' which is 'installdir/components/com_contact/contact.php'. What if there is no query string? In that case, Mambo will load the first published item in your main menu. By default, it is 'Home' which is linked to 'frontpage' component.

Default page
Fig 6. Default home page

You can set which items to show on the frontpage either by selecting 'Show on Frontpage' when editing a content, or clicking the 'Front Page' icons in the content table.

Show on frontpageShow on frontpage
Fig 7. Show a content item on the frontpage



 

Powered by
Syndicate