Gossamer Forum
Quote Reply
Fix Global Please
In the forum, I found this global. But its not working properly with version 3.20. Its giving a Unknown Tag Detailed URL. I know its missing the property which pases along the TAG as links.html but I cant place it correctly.

Help is much apreciated.

sub {
# Displays the newest on the home page.
my ($output,$sth,$link);
my $search_db = $DB->table('Links');
$search_db->select_options ('ORDER BY Add_Date DESC Limit 10');
$sth = $search_db->select ( { isNew => 'Yes', isValidated => 'Yes' });
while ($link = $sth->fetchrow_hashref) {
if (length $link->{Title} > 20) {
$link->{Title} = substr($link->{Title}, 0, 20) . '...';
}
$output .= Links::SiteHTML::display ('link_new_videos', $link);
}
return $output;
}

Thank you.

Juan Carlos
Quote Reply
Re: [Gorospe] Fix Global Please In reply to
Hi Juan,

It seems that you did not set to build the detailed page.

In admin, Setup->build options-> choose "Yes" at build_detailed radio

Cheers,

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Fix Global Please In reply to
Actually yes it is... A regular link takes me there, and another global similar to this one takes me to the detailed page...

Thanks
Quote Reply
Re: [Gorospe] Fix Global Please In reply to
I guessed that.

Just try to change this

$output .= Links::SiteHTML::display ('link_new_videos', $link);

to

$output .= Links::SiteHTML::display ('link_new_videos', Links::SiteHTML::site_tags_link($link));

That should work



Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Fix Global Please In reply to
It worked, Thank you.