Tutorial: Joomla - How to add 2 new module positions


Author Message
2ninerniner2

Posted: 8/29/2010
Quote message 

Howdy,

I have just completed a guide on how to add 2 new module positions:
- top of the page
- within the header area

Additionally, you can download the completed, customized template to use, dissect or whatever :)

Check them out on my site here:

http://www.2ninerniner2.com/tips-and-guides/artisteer

Cheers!
Lyle
 
www

Posted: 10/21/2010
Quote message 

It should be something like this: (here is 5 modules, bottom position)

function artxPositions(&$document, $positions, $style)
{
ob_start();
if (count($positions) == 5) {
if (artxCountModules($document, $positions[0])
&& artxCountModules($document, $positions[1])
&& artxCountModules($document, $positions[2])
&& artxCountModules($document, $positions[3])
&& artxCountModules($document, $positions[4]))
{
?>
<table class="position" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td width="20%"><?php echo artxModules($document, $positions[0], $style); ?></td>
<td width="20%"><?php echo artxModules($document, $positions[1], $style); ?></td>
<td width="20%"><?php echo artxModules($document, $positions[2], $style); ?></td>
<td width="20%"><?php echo artxModules($document, $positions[3], $style); ?></td>
<td width="20%"><?php echo artxModules($document, $positions[4], $style); ?></td>
</tr>
</table>
 
caro

Posted: 3/15/2011
Quote message 

thank you soooooooooooooooooo very much!!!!!!=) that was very helpfull! very easy to follow
looking forward for more of your tutorials!