Module_positions 
Module positions
Module positions are placeholders in a template. They identify 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 used in 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.
templateDetails.xml
The templateDetails.xml 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.
<positions> <position>top</position> <position>left</position> <position>right</position> <position>bottom</position> <position>banner</position> <position>syndicate</position> <position>footer</position> <position>user1</position> <position>user2</position> <position>user3</position> <position>user4</position> </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 <positions> and </positions> tags. In between those tags in the templateDetails.xml file, add the name of the module position in between a set of <position> and </position> tags.
Use and Implementation
A Joomla! template displays a set of modules added to a specific position using the <jdoc:include /> statement shown below (for further information about <jdoc:include /> see jdoc statements):
<jdoc:include type="modules" name="name of module position" style="xhtml" />
Sidebar
登录
最近Wiki文档变动
- 网站管理
- Security_Checklist_6_-_Site_Recovery
- Writing_an_ETL_Plugin
- Joomla_Administrators_Security_Checklist
- Security_and_Performance_FAQs
- Security_Checklist_5_-_Site_Administration
- Security_Checklist_4_-_Joomla_Setup
- Security_Checklist_3_-_Testing_and_Development
- Security_Checklist_2_-_Hosting_and_Server_Setup
- Security_Checklist_1_-_Getting_Started
- Category:Security_Checklist
- How_are_templates_executed?
- 如何升級Agora 2.5到3.0版本
- JOOMLA 1.5.11分類列表的CSS佈局不正確解決方案
- Category_List_Layout_-_Layout_breaks
- How_to_Upgrade_from_Agora_2.5_to_3.0
- 如何替换Joomla!标识
- 如何将秘密文件转移至 public_html 之外的目录?
- How_do_you_move_confidential_files_outside_of_public_html%3F
- Plugin Developer Overview

