![]() |
Subcategory Rows Not Filled Properly
I have a question about proper formatting for my subcategory rows. I have used previous posts on this topic (although quite difficult to apply because they are old) to alter my subcategory templates. This was in January I believe.
Well, now that I have 10 subcategories within a subcategory itself, they are not displayed properly. Initially, I set up the layout to show 5 subcategories per row. But now, it shows 5 in row 1, 4 in row 2 and 1 in row 3 (instead of filling a row before starting a new one). I'm guessing that it has to do with the "$tmp" in my subcategories.tpl, but I haven't been able to change it to what I want it to do. Here's the problem page that doesn't fill the rows completely: Custom Valances And here's my subcategories.tpl: HTML Code:
{* $Id: subcategories.tpl,v 1.43.2.9 2006/06/27 08:22:01 svowl Exp $ *} Thanks again!!! :mrgreen: |
Re: Subcategory Rows Not Filled Properly
Hi anela2003,
What about trying this below. Adapt where you see fit (I've removed a quite a bit of code as we're concentrating on the table itself and made it html valid in the process)... Code:
{if $subcategories} Hope this gets in you in the right direction. |
Re: Subcategory Rows Not Filled Properly
BEAUTIFUL!
Worked like a charm, thank you, thank you. |
All times are GMT -8. The time now is 07:29 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.