Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Expanding Size of Category Box

Quote Reply
Expanding Size of Category Box
Hi-

I have a large number of categories, so in setup I set db_gen_category_list = no so that it doesn't generate the category list, and I enter them manually.

I've been trying to figure out how to expand the size of the box where I enter the categories which is preset at 45,3 but can't find the template/place where this can be done for the Link Add form and the Links Modify form in the Admin. Does anyone have any idea?

-jw
Quote Reply
Re: [jwalter] Expanding Size of Category Box In reply to
In case anyone is trying to do this I had a hunt around and in

Admin/Links/HTML/Links.pm

You need to change the following bit of code to whatever height you would like the box


# Returns a select box of all categories.
#
my $self = shift;
my $id = shift;
my $name = shift || 'CatLinks.CategoryID';
my $mult = shift || 5;
my $db = $DB->table ('Category');
my $sth = $db->select ( ['ID', 'Full_Name'] );
my %res = ();
while (my ($id, $name) = $sth->fetchrow_array) {
$res{$id} = $name;