i want to use the span global you posted (Display/calculate a span pages toolbar)
and i have this global:
sub {
my $output;
my $tags = shift;
my $cat_id = $tags->{ID};
my $subcats = $DB->table('Category')->children($cat_id);
push @$subcats, $cat_id;
my $link_db = $DB->table('Links','CatLinks');
my $condition = GT::SQL::Condition->new( 'isValidated','=','Yes','CategoryID', 'IN', $subcats);
my $sth = $link_db->select($condition);
while (my $link = $sth->fetchrow_hashref) {
$output .= Links::SiteHTML::display ('link', $link);
}
return $output;
}
global name is: subcategory_links
it is on the template category.html it show all the links from the subcategory on the mother category.
but i want to span the links in pages.
what do i have to modify or add to my global to makit work with your span_pages global?
thanks
and i have this global:
sub {
my $output;
my $tags = shift;
my $cat_id = $tags->{ID};
my $subcats = $DB->table('Category')->children($cat_id);
push @$subcats, $cat_id;
my $link_db = $DB->table('Links','CatLinks');
my $condition = GT::SQL::Condition->new( 'isValidated','=','Yes','CategoryID', 'IN', $subcats);
my $sth = $link_db->select($condition);
while (my $link = $sth->fetchrow_hashref) {
$output .= Links::SiteHTML::display ('link', $link);
}
return $output;
}
global name is: subcategory_links
it is on the template category.html it show all the links from the subcategory on the mother category.
but i want to span the links in pages.
what do i have to modify or add to my global to makit work with your span_pages global?
thanks