Actions

Difference between revisions of "Module"

From Joomla! Documentation

m (Undo revision 69444 by Urielmx (talk) Please do not link to pages in the user namespace.)
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Module}}
+
{{Chunk:Module}}
  
===Module Position===
+
==Module positions==
  
[[Image:Module_Position.jpg|thumb|Example of Module Position]]
+
{{Chunk:Module Position}}
Modules can be added to a [[Module Position]]. Positions are defined in a Joomla template. Additionally you can see what positions are available in the template you are using by adding either ?tp=1 or &tp=1 to the end of the URL in the frontend.
+
  
 +
Since '''Joomla 1.5''' {{JVer|1.5}} you can see what positions are available in the template you are using by adding either ?tp=1 or &tp=1 to the end of the URL in the frontend.
  
[[Category:Landing Pages]][[Category:Glossary]][[Category:JED]]
+
'''Joomla 1.6''' {{JVer|1.6}} and newer will only show the template positions with ?tp=1 or &tp=1 if the '''Preview Module Positions mode''' in the Template Manager has been '''enabled''':
 +
Extensions > Template Manager > Options (upper right corner) > (templates tab) Preview Module Positions: Enabled.
 +
 
 +
==Recommended Reading==
 +
 
 +
===Developers===
 +
{{RecReading|Module|dev|audience}}
 +
 
 +
[[Category:Extensions| Module]][[Category:Landing Pages]][[Category:Glossary]][[Category:JED]]

Revision as of 17:19, 26 July 2012

<translate> Modules are lightweight and flexible extensions used for page rendering. These modules are often “boxes” arranged around a component on a typical page. A well-known example is the login module. Modules are assigned per menu item, so you can decide to show or hide (for example) the login module depending on which page (menu item) the user is currently on. Some modules are linked to components: the “latest news” module, for example, links to the content component (com_content) and displays links to the newest content items. However, modules do not need to be linked to components; they don't even need to be linked to anything and can be just static HTML or text.

Modules are managed in the Joomla! Administrator view by the Module Manager. More information about module management can be found on the appropriate version help screens.

See also: Component, Plugin, Template</translate>


Contents

Module positions

<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>


Since Joomla 1.5 Joomla 1.5 you can see what positions are available in the template you are using by adding either ?tp=1 or &tp=1 to the end of the URL in the frontend.

Joomla 1.6 Joomla 1.6 and newer will only show the template positions with ?tp=1 or &tp=1 if the Preview Module Positions mode in the Template Manager has been enabled: Extensions > Template Manager > Options (upper right corner) > (templates tab) Preview Module Positions: Enabled.

Recommended Reading

Developers

Recommended Reading

For more developer information, see Module Development.