Home : Products : Gossamer Links : Discussions :

Products: Gossamer Links: Discussions: Re: [Anat] Show CategoryID in Add_Success.html?: Edit Log

Here is the list of edits for this post
Re: [Anat] Show CategoryID in Add_Success.html?
Hi,

Try this global:

sub {
my ($rec) = @_;
my $id = $rec->{ID};
my $db = $DB->table ('Category','CatLinks');
my $sth = $db->select ( { 'CatLinks.LinkID' => $id }, ['Category.Full_Name'] );
my $output;
while (my $cat = $sth->fetchrow_array){
$output.= qq~<li>$cat~;
}
return $output;
}


I'm assuming that the id of the link is available as a tag in the template.

Hope it works,

Laura.
Edit: I just added a fix for multiple categories.
The UK High Street

Last edited by:

afinlr: Oct 2, 2002, 4:18 PM

Edit Log: