Gossamer Forum
Home : Products : Gossamer Links : Discussions :

New point of view for links in a cat

Quote Reply
New point of view for links in a cat
Say we have a cat with three subcats;
in every subcat are only 5 links and i wont need an additional click for the subcats.

Example:
Now we show:

cat
subcat1
subcat2
subcat3

With a click i can enter the subcats and show my links.

Now i want this:
cat
subcat1 (as text not a link!)
link1
link2
...

subcat2 (as text...)
link1
link2
link3

....


Has someone done this before?

Its equal to the output for a search; i will go and see ...

Robert
Quote Reply
Re: [Robert] New point of view for links in a cat In reply to
Ok, got the first step:
This is a global named subcats to show all subcats for a cat:

Code:
sub {
my $tags = shift;
my $cat_db = $DB->table('Category');
$cat_db->select_options ("ORDER BY Name");
my $father_id = $tags->{ID};
my @sub_cats = $cat_db->select (['Name'], { FatherID => $father_id })->fetchall_list; ;
my ($output,$test);
foreach my $sub_cat(@sub_cats) {
$output.="$sub_cat<br>";
}
return $output;
}



Next step:get all links for a certain cat.

Last edited by:

Robert: Feb 17, 2002, 12:01 PM