Hi Alex,
I did try the code and its work, but only on 'Static' page and the path is correct, but not with 'Dynamic' page and the path is not correct, Please help.
my $tags = shift;
my $cat_db = $DB->table('Category');
my @root_cats = $cat_db->select (['Full_Name'], { FatherID => 0 })->fetchall_list;
my $output;
foreach my $root_cat (@root_cats) {
my $url = $cat_db->as_url($root_cat);
$output .= qq~<a href="$url">$root_cat</a><br>~;
}
return $output;
}
I did try the code and its work, but only on 'Static' page and the path is correct, but not with 'Dynamic' page and the path is not correct, Please help.
Code:
sub { my $tags = shift;
my $cat_db = $DB->table('Category');
my @root_cats = $cat_db->select (['Full_Name'], { FatherID => 0 })->fetchall_list;
my $output;
foreach my $root_cat (@root_cats) {
my $url = $cat_db->as_url($root_cat);
$output .= qq~<a href="$url">$root_cat</a><br>~;
}
return $output;
}