Not sure if this will work, but you could try editing site_html_templates.pl. Change;
Code:
sub site_html_detailed {
# --------------------------------------------------------
# This routine will build a single page per link. It's only
# really useful if you have a long review for each link --
# or more information then can be displayed in a summary.
#
my %rec = @_;
return &load_template ('detailed.html', {
total => $total,
grand_total => $grand_total,
title_linked => $title_linked,
%rec,
%globals
} );
}
,.... to.....
Code:
sub site_html_detailed {
# --------------------------------------------------------
# This routine will build a single page per link. It's only
# really useful if you have a long review for each link --
# or more information then can be displayed in a summary.
#
my %rec = @_;
my $short_desc = $rec->{Description};
my $char_limit = "20";
my @cut = split(" ",$rec->{short_desc});
$short_desc = "";
foreach (@cut) {
$short_desc .= " " . $_;
if (length($short_desc) >= $char_limit) { $short_desc .= "..."; last; }
} return &load_template ('detailed.html', {
total => $total,
grand_total => $grand_total,
title_linked => $title_linked,
%rec,
%globals
} );
}
Untested, and my Links 2 is a bit rusty.. so I'mnot sure how its gonna work. You need to call it in detailed.html with <%short_desc%>
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my
Amazon Wish List GLinks ULTRA Package | GLinks ULTRA Package PRO Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin |
Pre-Made Template Sets |
FREE GLinks Plugins!