Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [blakeb] Subcategory.html

Quote Reply
Re: [blakeb] Subcategory.html In reply to
Could you not use a loop....say something like this in home.html;

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 Smile

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!
Subject Author Views Date
Thread Subcategory.html blakeb 14391 Apr 5, 2003, 7:24 PM
Post Re: [blakeb] Subcategory.html
webmaster33 13979 Apr 6, 2003, 6:46 AM
Thread Re: [blakeb] Subcategory.html
Paul 14056 Apr 6, 2003, 6:49 AM
Thread Re: [Paul] Subcategory.html
blakeb 14071 Apr 6, 2003, 9:40 AM
Post Re: [blakeb] Subcategory.html
blakeb 14017 Apr 7, 2003, 2:58 PM
Thread Post deleted by webmaster33
webmaster33 14063 Apr 7, 2003, 4:05 PM
Thread Re: [webmaster33] Subcategory.html
blakeb 14098 Apr 7, 2003, 4:57 PM
Thread Re: [blakeb] Subcategory.html
Paul 14045 Apr 7, 2003, 4:58 PM
Thread Re: [Paul] Subcategory.html
blakeb 14060 Apr 7, 2003, 5:03 PM
Thread Re: [blakeb] Subcategory.html
Andy 13944 Apr 8, 2003, 9:37 AM
Post Re: [Andy] Subcategory.html
pugdog 13908 Apr 8, 2003, 10:58 AM
Post Re: [Andy] Subcategory.html
webmaster33 13929 Apr 8, 2003, 11:08 AM
Thread Re: [blakeb] Subcategory.html
webmaster33 13999 Apr 7, 2003, 5:10 PM
Thread Re: [webmaster33] Subcategory.html
blakeb 14049 Apr 7, 2003, 8:19 PM
Thread Re: [blakeb] Subcategory.html
pugdog 13996 Apr 7, 2003, 10:50 PM
Thread Re: [pugdog] Subcategory.html
webmaster33 13994 Apr 8, 2003, 12:55 AM
Thread Re: [webmaster33] Subcategory.html
pugdog 13938 Apr 8, 2003, 11:03 AM
Thread Re: [pugdog] Subcategory.html
webmaster33 13950 Apr 8, 2003, 12:11 PM
Thread Re: [webmaster33] Subcategory.html
pugdog 13972 Apr 8, 2003, 1:37 PM
Thread Re: [pugdog] Subcategory.html
webmaster33 13945 Apr 8, 2003, 1:42 PM
Post Re: [webmaster33] Subcategory.html
Paul 13955 Apr 8, 2003, 1:45 PM
Thread Re: [pugdog] LSQL features & upgrade compatibility
webmaster33 14018 Apr 8, 2003, 2:52 PM
Thread Re: [webmaster33] LSQL features & upgrade compatibility
pugdog 13924 Apr 9, 2003, 5:07 AM
Thread Re: [pugdog] LSQL features & upgrade compatibility
klauslovgreen 13942 Apr 9, 2003, 5:29 AM
Thread Re: [klauslovgreen] LSQL features & upgrade compatibility
pugdog 13855 Apr 9, 2003, 5:55 AM
Thread Re: [pugdog] LSQL features & upgrade compatibility
klauslovgreen 2773 Apr 9, 2003, 6:03 AM
Post Re: [klauslovgreen] LSQL features & upgrade compatibility
pugdog 2724 Apr 9, 2003, 9:48 AM
Post Re: [pugdog] LSQL features & upgrade compatibility
webmaster33 2726 Apr 9, 2003, 6:16 AM
Post Re: [pugdog] Subcategory.html
SaraBem 2625 Apr 18, 2007, 6:29 AM