Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

tags not being carried forward

Quote Reply
tags not being carried forward
I am using the following global in include_rightsidebar.html template.

Quote:
sub {
# Displays the featured links on the home page.
my ($output,$sth,$feature);
my $search_db = $DB->table('Links');
$search_db->select_options ('ORDER BY Add_Date DESC');
$sth = $search_db->select ( { isFeature => 'Yes'});
while ($feature= $sth->fetchrow_hashref) {
$output .= Links::SiteHTML::display ('feature', $feature);
}
return $output;
}


It is not recognising the <%detailed_url%> or <%URL%> tag but is recognising the <%Description%> tag.

Is there any reason for this?
Quote Reply
Re: [Alba] tags not being carried forward In reply to
Changed the global to read:
Quote:
sub {
# Displays the featured links on the home page.
my ($output,$sth,$feature);
my $search_db = $DB->table('Links');
my $link ="";
$search_db->select_options ('ORDER BY Add_Date DESC');
$sth = $search_db->select ( { isFeature => 'Yes'});
while ($feature= $sth->fetchrow_hashref) {
$feature->{'detailed_url'} = "$CFG->{build_detail_url}/$feature->{'ID'}$CFG->{build_extension}";
$output .= Links::SiteHTML::display ('feature', $feature);
}
return $output;
}

and the <%detailed_url%> tag is now being recognised.