Hi,
Just thought I'd post this here in case it's useful to anyone else in the future.
I've just upgraded my Links installation and because my previous install had the link description follow on directly after the link title, all the descriptions had lowercase letters at the start.
My new format has the description underneath the link, and therefore needs the descriptions re-capitalising.
Rather than sit and edit thousands of links I came up with the following global to display the description with a capitalised first letter.
Global name: UpperDesc
sub {
my $vars = shift;
my $descr = $vars->{Description};
my $updescr = ucfirst($descr);
return $updescr;
}
Then in the link template, replace <%Description%> with <%UpperDesc%>
Just thought I'd post this here in case it's useful to anyone else in the future.
I've just upgraded my Links installation and because my previous install had the link description follow on directly after the link title, all the descriptions had lowercase letters at the start.
My new format has the description underneath the link, and therefore needs the descriptions re-capitalising.
Rather than sit and edit thousands of links I came up with the following global to display the description with a capitalised first letter.
Global name: UpperDesc
Code:
sub {
my $vars = shift;
my $descr = $vars->{Description};
my $updescr = ucfirst($descr);
return $updescr;
}
Then in the link template, replace <%Description%> with <%UpperDesc%>
