[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: Problems with href
- From: Denis Barbier <nospam@thanx>
- Date: Sun, 27 Aug 2000 01:37:19 +0200
On Sun, Aug 20, 2000 at 04:14:30PM +0200, Jan Ulrich Hasecke wrote:
> Hi!
>
> I use a perlskript to randomly insert a link from a file containing
> all possible links. I do this in this way:
>
> In my template-file:
>
> /------ gp.wml-----------
>
> some commands
>
> <define-tag tipp>
> <: perl-commands stolen from a randomsig.pl :>
> </define-tag>
>
> other commands
>
> <tipp>
>
> rest of file
>
> \----------------------
>
> This inserts a random link in place. Now I want to use href, so all
> links are wirtten in this way.
>
> <href url="$(ROOT)/link1.html" name="Link 1">
>
> The problem is that <href> is not converted into real links, because
> they are converted in pass 1 or 2 as written in the manual, and my
> perl-insertion is made in pass 3.
>
> How can I solve this? I need <href> because I have to use
> $(ROOT). Some files are in subdirectories and must link from there.
I do not see why you need <href>, you may write something like
<define-tag tipp>
<: perl-commands ...
print '<a href="$(ROOT)/' . $randomlink . '">' . $randomtext . '</a>';
:>
</define-tag>
--
Denis Barbier
WML Maintainer
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com