Hi, All
I am using this global to show the short description of the link.
######################################
sub {
my $tags = shift;
my $desc = $tags->{Description} or return "No description on this template";
length $desc < 300 and return $desc;
my $short = substr ($desc, 0, 300);
$short =~ s/\s\S+?$//;
$short .= "<b> ... read more</b>";
return $short;
}
#####################################
What I want is at the end of the short description a "read more" hyperlink to a detailed page. I tried <%detailed_url%> but that doesn't work. And "read more" must also work when there are less than 300 characters in my example.
Thanks all.
Ron
I am using this global to show the short description of the link.
######################################
sub {
my $tags = shift;
my $desc = $tags->{Description} or return "No description on this template";
length $desc < 300 and return $desc;
my $short = substr ($desc, 0, 300);
$short =~ s/\s\S+?$//;
$short .= "<b> ... read more</b>";
return $short;
}
#####################################
What I want is at the end of the short description a "read more" hyperlink to a detailed page. I tried <%detailed_url%> but that doesn't work. And "read more" must also work when there are less than 300 characters in my example.
Thanks all.
Ron