URL in consultants index
this is relating to my mail sent 5 days ago:
consultants/index: how about to supply http:// to URL
if it doesnt start with http/https?
in consultant.defs,
below adds the http: schema if it starts without web scheme
<define-tag URL whitespace=delete>
<strong><gettext domain="consultants">URL:</gettext></strong>
<a href="<:
my $web = q{%0};
unless($web =~ /^https?:/){$web = "http://$web"}
print $web;
:>">%0</a><br />
</define-tag>
if you want it foor the link string, something like:
<define-tag URL whitespace=delete>
<strong><gettext domain="consultants">URL:</gettext></strong>
<a href="<:
my $web = q{%0};
unless($web =~ /^https?:/){$web = "http://$web"}
print "$web\">$web";
:></a><br />
</define-tag>
--
victory
no need to CC me :-)
http://userscripts.org/scripts/show/102724
0.0.1.3
Reply to: