Gossamer Forum
Home : Products : Links 2.0 : Customization :

Subcategory layout 3 columns instead of 2?

Quote Reply
Subcategory layout 3 columns instead of 2?
Ok I searched the board. I am trying to get my sub cats to lay out in 3 columns instead of 2. What I found on the board was to change
my ($half) = int (($#subcat+2) / 2);
to
my ($half) = int (($#subcat+2) / 3);
or
my ($half) = int (($#subcat+3) / 3);
in site_html_template.pl
I tried both and they both create one shorter
column and one longer column meaning it puts one third in the first and 2 thirds in the 2nd but doesnt create 3 columns. Any suggestions?

Kelly
Quote Reply
Re: Subcategory layout 3 columns instead of 2? In reply to
Definetly interested. I already have set my script up to have the FRONT page categories build different then the sub categories. 2 different subroutines. So now I just need my subcategories to lay out different. I AM using templates. If you get the time please send the code you are using. Thanks
Kelly
Quote Reply
Re: Subcategory layout 3 columns instead of 2? In reply to
Take a look through my site at http://www.orphanage.com/goodstuff/index.html , including the sub pages. Look at how I do my categories and sub-categories. Notice how I center the "odd" category. The code I use does two across but can be modified to work with 3 across. However, the code is very confusing because it uses tables within tables within tables to do its job.

If you are interested, I can send you the code that I use and point you to what needs to be adjusted. Just be sure to let me know whether or not you are using templates.
Quote Reply
Re: Subcategory layout 3 columns instead of 2? In reply to
Check Out My Site! But Not YET READY FOR LINKS TO BE ADDED.. TESTING ONLY hehe

Will be moved to another URL and SERVER and Will Install MySQL!

http://www.trisoft.net/cgi-bin/search/

Main HOMEPAGE

http://www.trisoft.net

Personal Homepage
http://members.xoom.com/nguyentri/

I NEED Comments FOLKS!
Thanks!
Quote Reply
Re: Subcategory layout 3 columns instead of 2? In reply to
Why not try posting a NEW topic for people to come check it out instead of replying to help for page layout. Smile
Kelly
Quote Reply
Re: Subcategory layout 3 columns instead of 2? In reply to
What it irritating is that all these wierd posts are placed in the wrong forum. This is a modification forum. It is just amazing that people at the least, can't be curteous to other users.