sub import {
hook(type => "parentlinks", id => "parentlinks", call => \&parentlinks);
hook(type => "pagetemplate", id => "parentlinks", call => \&pagetemplate);
sub import {
hook(type => "parentlinks", id => "parentlinks", call => \&parentlinks);
hook(type => "pagetemplate", id => "parentlinks", call => \&pagetemplate);
my @links=parentlinks($params{page});
$template->param(parentlinks => \@links);
$template->param(has_parentlinks => (@links > 0));
my @links=parentlinks($params{page});
$template->param(parentlinks => \@links);
$template->param(has_parentlinks => (@links > 0));