Beginner's Guide

Joomla knows the values in baseurl as well as the name of your template and you can access them
when needed.
In line 46 you will see:
echo $app->getCfg('sitename');
It will tell you the name of your site.
In line 48 you will see:
if($this->countModules('atomic-search')) ...
It counts the amount of modules at the position atomic-search. It is used to adjust your layout to
different situations.
In line 50 you will see:
<jdoc:include type="modules" name="atomic-search" style="none" />
This is a <jdoc> command, which only exists as a name space in Joomla. It is used to insert the
HTML output of the given type into the attributes. In this case it means the output of all modules
assigned to the template position atomic search. The style attribute is called module chrome and can have
these values
table - The output is displayed in a table.
horz - The output is displayed horizontally in a cell of a surrounding table.
xhtml - The output is in in an XHTML-compliant <div> element.
rounded - The output is in a format in which round corners can be displayed. The class of the
element is renamed from moduletable to module.
none - no formatting
outline - the display type for the position preview (?tp=1)
Template specific style - Some templates, like Beez, have their own styles. See chapter The Beez
Template.
You will find a complete list of styles in the Joomla documentation - What is module chrome [6].
Other <jdoc> types are:
<jdoc:include type="head" />
<jdoc:include type="message" />
<jdoc:include type="component" style="none" />
Joomla! 2.5 - Beginner’s Guide
Monday, 30 January 2012! Page 199