[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: Combining wml::des:navbar with per-button HTML code
- From: Denis Barbier <nospam@thanx>
- Date: Thu, 20 Jan 2000 14:10:32 +0100 (CET)
On Thu, 20 Jan 2000, Stephane Bortzmeyer wrote:
> I would like to add a bit of HTML code in *some* buttons in a navbar. (It is
> actually ePerl code to display or not the button, depending on the IP address
> of the client.)
>
> There is apparently no per-button prolog or epilog?
There is since WML-1.7.0
Define your prolog/epilog with pos=next before defining special buttons.
Example:
<navbar:define name=main>
# Define global prolog and epilog text
<navbar:prolog>...</navbar:prolog>
<navbar:epilog>...</navbar:epilog>
# Buttons
<navbar:button .........>
<navbar:button .........>
# Special text for the next button only
<navbar:prolog pos=next>...</navbar:prolog>
<navbar:epilog pos=next>...</navbar:epilog>
<navbar:button .........>
# Prolog and epilog should have their original values
<navbar:button .........>
<navbar:button .........>
</navbar:define>
--
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