Hi Andy,
there is one global that shows still the wrong URL to detailed page
Code:
sub {
my $id = $_[0];
my $desc = $_[1];
my $chars = $_[2] || '200';
my $build_detail_url = $CFG->{build_detail_url};
my $build_extension = $CFG->{build_extension};
if (!$desc) { return "No description on this template"; }
if ( length $desc < $chars ) {
$desc = GT::CGI::html_escape($desc);
$desc =~ s/\n/<br \/>\n/g;
return $desc;
}
my $short = substr ($desc, 0, $chars);
$short =~ s/\s\S+?$//;
$short = GT::CGI::html_escape($short);
$short =~ s/\n/<br \/>\n/g;
my $detailed_url = "$build_detail_url/$id$build_extension";
$short .= qq| ... <a href="$detailed_url">weiter lesen</a>|;
return $short;
}
I call it with
Code:
<%description_short($ID,$Description,200,1)%>
Do you know what to change to get the new URL?
Thanks
Matthias
gpaed.de