7ce71ee9f0931c4ea73943235dd5af32.jpg
Hidalguenses Famosos

Module Position System

If you have used JA T3 V2, you may familiar with module position in the new version. There are not much difference. You can create unlimited module positions, assign them to blocks.

Note: Module position is added to a specific block so you have to defined which layout you want to add new module position to.

Step 1: Add module position to block

All block files are located in: template/ja_t3v3_blank/tpls/blocks. Open the block file you want to add new module position to.

 <jdoc:include type="modules" name="<?php $this->_p('your_module_position_name') ?>" />
 

Step 2: Define new created module position

When done, you need to define the new created module position in the file: TemplateDetail.xml

	<positions>
<position>your_module_position_name</position>
</positions>

Example

In the example, I will create a module position named custom-position in the layout: mainbody-content-left

<jdoc:include type="modules" name="<?php $this->_p($custom-position) ?>" style="JAxhtml" />

Now, I define the module position in the TemplateDetail.xml file.

	<positions>
<position>debug</position>
<position>position-0</position>
<position>position-1</position>
<position>position-2</position>
<position>position-3</position>
<position>position-4</position>
<position>position-5</position>
<position>position-6</position>
<position>position-7</position>
<position>position-8</position>
<position>position-9</position>
<position>position-10</position>
<position>position-11</position>
<position>position-12</position>
<position>position-13</position>
<position>position-14</position>
<position>position-15</position>
<position>custom-position</position> <! my created module position />
</positions>