I would like to do this as well ( Other Links by This Member ) but i didn't understand what was explained above.
Do I create a global in the admin panel
Where Code is <%global_name($LinkOwner)%>
and where Description is the code below
sub {
my $user = $_[0];
my $sth = $DB->table('Links')->select( { LinkOwner => $user, isValidated => 'Yes' } ) || return $GT::SQL::error;
my $back;
while (my $hit = $sth->fetchrow_hashref) {
$back .= Links::SiteHTML::display('link', $hit);
}
return $back;
}
then do I place this in the detailed.html template?
<%global_name($LinkOwner)%>
Do I create a global in the admin panel
Where Code is <%global_name($LinkOwner)%>
and where Description is the code below
sub {
my $user = $_[0];
my $sth = $DB->table('Links')->select( { LinkOwner => $user, isValidated => 'Yes' } ) || return $GT::SQL::error;
my $back;
while (my $hit = $sth->fetchrow_hashref) {
$back .= Links::SiteHTML::display('link', $hit);
}
return $back;
}
then do I place this in the detailed.html template?
<%global_name($LinkOwner)%>