When I add a module statement in a joomla template, I always use this code :
<jdoc:include type="modules" name="left" style="xhtml" />
What does the style
attribute stand for and what other styles can I use?
Joomla Stack Exchange is a question and answer site for Joomla! administrators, users, developers and designers. It only takes a minute to sign up.
Sign up to join this communityBy default you could use the following styles:
You can also create custom functions by creating a modules.php file in your template html folder and name the function modChrome_"yourname" for example:
function modChrome_pre($module, &$params, &$attribs) {
echo '<pre>'.$module->content.'</pre>';
}
And use this in your template to use this chrome style
<jdoc:include type="modules" name="left" style="pre" />
More about modules styling could be found at http://docs.joomla.org/Customising_the_way_modules_are_displayed
This may help if you're wanting to make your own Chrome styles:
This will be helpful for learning more about Module Chrome Styles: