Difference between revisions of "Module Position"

From Joomla! Documentation

m (update)
m (Developer Information: moving developer info out)
Line 10: Line 10:
:[[Image:Module_Map.jpg|600px|Module positions in a default Joomla! 1.5 template]]
:[[Image:Module_Map.jpg|600px|Module positions in a default Joomla! 1.5 template]]
==Developer Information==
{{notice|The rest of this article has general developer information which may be too advanced to understand unless you are a developer.|title=Developer Information Ahead!}}
The <code>templateDetails.xml</code> file contains all the installation and core information for a template, including the module positions it utilizes and displays. Here is a brief list of the commonly used names for the various module positions.
Although these are commonly used, it is up to the template developer to choose both a module position name and an accompanying display style.
The addition of module positions, as displayed above, is implemented in between the <code><positions></code> and <code></positions></code> tags. In between those tags in the <code>templateDetails.xml</code> file, add the name of the module position in between a set of <code><position></code> and <code></position></code> tags.
===Use and Implementation===
A Joomla! template displays a set of modules added to a specific position using the <code><jdoc:include /></code> statement shown below (for further information about <code><jdoc:include /></code> see [[jdoc statements]]):
<jdoc:include type="modules" name="name of module position" style="xhtml" />

Revision as of 21:58, 29 September 2013

Joomla! Users and Administrators need to only understand the following:

  • Modules are set positions dictated by the template developer when they developed the template.
  • Modules can be turned on and off based on menu selection.
  • Modules can be reordered in their assigned position using the Module Manager.

<translate> A module position is a placeholder in a template. Placeholders identify one or several positions within the template and tell the Joomla! application where to place output from modules assigned to a particular position. The template designer has complete control over module positions, creating variations between templates and the respective Joomla! default positions assigned to modules in the installation sample data.

For example, the module position Left could be defined to be on the left side of the template to display a site navigation menu. So if a module is assigned the Left position, it will be displayed wherever the designer puts that Left module position - not necessarily the left side of the page. </translate>

Module Map

The image below shows an example of a module map when module mapping is enabled in template administration.

Module positions in a default Joomla! 1.5 template