Could you not use a loop....say something like this in home.html;
<%if FatherID != 0%>
# 2 STUFF HERE
<%else%>
# 3 STUFF HERE
<%endif%>
<%endloop%>
Then where the first STUFF HERE bit is, you will need a loop that will go through 3 times, to create a 3 column table. a similar thing will need to be done the second time...but for 2 columns this time.
The reason I think you could get away with checking FatherID, is because it will always be 0 for a root category. In sub-categories there will be a number, i.e. 5,6,7 8, etc.
Hope that makes sense. I havn't tried it...which is why I only posted partial code. I was just playing around with the idea...and thought I would post it
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Code:
<%loop category_loop%> <%if FatherID != 0%>
# 2 STUFF HERE
<%else%>
# 3 STUFF HERE
<%endif%>
<%endloop%>
Then where the first STUFF HERE bit is, you will need a loop that will go through 3 times, to create a 3 column table. a similar thing will need to be done the second time...but for 2 columns this time.
The reason I think you could get away with checking FatherID, is because it will always be 0 for a root category. In sub-categories there will be a number, i.e. 5,6,7 8, etc.
Hope that makes sense. I havn't tried it...which is why I only posted partial code. I was just playing around with the idea...and thought I would post it
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!