Gossamer Forum
Home : Products : Links 2.0 : Discussions :

category setup

Quote Reply
category setup
Is there a way to change the setup of categories so it goes:

A B
C

not

A C
B

and is there a way to remove the huge gap in between each category and shrink down the font size?

Allyn

http://www.galaxynetwork.net

Quote Reply
Re: category setup In reply to
I have rewritten site_html_print_cat to do list categories that way.
Go here:http://gossamer-threads.com/p/102950

To change the layout, change the HTML codes in the $output variables and/or modify links.css.

I have also posted instructions recently for templating the category link if you would rather edit an HTML file.
Go here:http://gossamer-threads.com/p/103634

--Drew
Quote Reply
Re: category setup In reply to
I did both but I get an error. I get the error Unkown Tag: category_name

Allyn

Quote Reply
Re: category setup In reply to
When in the process did you get that error? Did you do both modifications at the same time without testing the first one before proceeding?

Please save site_html_templates.pl as a textfile and post a link so I can compare it with my working copy.

--Drew
Quote Reply
Re: category setup In reply to
Yes, I did both.

I have uploaded a TXT of the version at http://www.galaxynetwork.net/site_html_templates.txt

Allyn

Quote Reply
Re: category setup In reply to
Don't worry about it. I got it doing what I want to do, just by removing the template code. Thanks for the help!

Quote Reply
Re: category setup In reply to
In Reply To:
I got it doing what I want to do, just by removing the template code.
That bugs me though Mad. The codes you had are exactly the same as I have (with only minor code placement differences that shouldn't impact the output) and it works fine for me.

I'll test your copy anyway just to see...

--Drew
Quote Reply
Re: category setup In reply to
Hey, I found the problem. I copied your code into mine and ran a build and got only '()' as output. In further hacking around, I commented out a couple lines untill I found the problem. Seems you can't initialize %cat_cat with the my function. To get the category link template to work, remove:
Code:
my %cat_rec;
I never put that code in my original version thinking it didn't need it, but when posting the code, I threw it in just in case...

I have updated the mod instructions to fix this bug.

--Drew