![]() |
Help on if div by 2
Hi All
im having a few glitches with dividing the subcategory section into 2 per row. i have done the following code, but when the subcategories, template loads, instead of dividing the subcategories by 2 per row, its putting them all in one line. Code:
<table width="100%" border=0 cellspacing=5> If anyone could shed some light as where im going wrong, as i think i just have one of the ending if staments in the wrong place. Many thanks |
Almost right... :)
Code:
{section name=cat_num loop=$subcategories} |
Hi funkydunk
thanks for the quick response, i have tried implementing your code, and i came up with an error of Quote:
this is what my full source code looks like with your additions Quote:
:?: |
Yeah you're missing a {/if} after the {/section}
|
Hi
i've tried adding the last {/if} and i still get the same error is it something else i've overlooked regards anton |
My mistake :oops:
{if $smarty.section.cat_num.index is odd} |
Thanks for that funkydunk
This has saved me a lot of time. yet again you prove to be the man many thanks |
All times are GMT -8. The time now is 06:54 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.