Need Help in Joomla! PHP code - News in more columns
Posted: Fri Oct 03, 2008 6:13 am
This is how it works now:
New row is created for every item, so the current code loks like this:
I need to put items in 2 columns.
So:
now is ______ should be
1 __________ 1 2
2 __________3 4
3 __________ 5 6
4 __________ 7 8
Please help ASAP!
New row is created for every item, so the current code loks like this:
Code: Select all
<table>
<?php foreach($list as $item) : ?>
<tr><td>
<div class="banneritem<?php echo $params->get( 'moduleclass_sfx' ) ?>"><?php
echo modBannersHelper::renderBanner($params, $item);
?><div class="clr"></div>
</div>
</tr></td>
<?php endforeach; ?>
</table>
So:
now is ______ should be
1 __________ 1 2
2 __________3 4
3 __________ 5 6
4 __________ 7 8
Please help ASAP!