Gossamer Forum
Quote Reply
Add subcategory...
Hello,

I modified this Global.

<%Add_list_sub($ID)%>
----------------------------
sub {
my $ID = $_[0] || 0;
my $cat_db = $DB->table('Category');
my @id_cats = $cat_db->select (['ID'],
{ FatherID => $ID })->fetchall_list;
my $output;
foreach my $root_add (@id_cats) {
$output .= qq~<a href="$CFG->{db_cgi_url}/add.cgi?ID=$root_add">$root_add</a><br>~;
}
return $output;
}
--------------------------

It gives number ID of a list of subcategory.

I would like that the Global one gives with number ID the name of the category.

$output .= qq~<a href="$CFG->{db_cgi_url}/add.cgi?ID=$root_add">$root_add</a><br>~;

I would like to replace $root_add with $Name.

I do not manage to find a solution. You have an idea?

Thank you for your assistance.

Mick

Last edited by:

mick31: Oct 17, 2004, 9:56 AM
Subject Author Views Date
Thread Add subcategory... mick31 1515 Oct 17, 2004, 9:53 AM
Thread Re: [mick31] Add subcategory...
afinlr 1438 Oct 17, 2004, 11:11 AM
Post Re: [afinlr] Add subcategory...
mick31 1430 Oct 17, 2004, 11:45 AM