[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: image sizes, extended navbar:button
- From: Denis Barbier <nospam@thanx>
- Date: Wed, 6 Mar 2002 02:01:32 +0100
On Tue, Feb 26, 2002 at 04:00:36PM +0100, Veres Ferenc wrote:
> Hello!
>
> 3 serious questions:
> FIRST: Images for size check are searched relative to the
> _source_ file and not the _destination_.
[...]
You gave the reason: slice is the last pass, so there is no way to know
that output files are put elsewhere when checking for image size.
If you want to keep your directory tree, you may give links relative to
source files, and remove en/ and hu/ from links with an epilog filter
(wml -E flag).
> SECOND problem: I need to extend the OnMouseOver stuff in the
> buttons, because I have a page where both the menu text and an
> icon changes image on onmouseover. Is this done with
> <navbar:filter>
> $mcode = s/Onmouseover="/Onmouseover="myextacode; /g
> </navbar:filter>
>
> Or how? Will be even more tricky, coz the incons will form
> another navbar, which will change the image states in the menu
> navbar.
Hmmm, sounds quite hard, maybe you should write your own navbar macros.
> To understand see: http://www.netngine.hu/references_e.html
> (which site is going to be WML if everything goes ok. And
> we will take wml into our co. strategy if other colleagues agree as
> well, replacing our own small programs and .shtml)
>
> THIRD: I wanted to make automatic selection of the language menu.
> This simply needs
> <navbar:render name=language select=<lang:star: *> nohints>
>
> Whis is, if I understand well, replaced with en, hu in each pass of
> slicing. (pass 9). Or not? Documentation says, <lang:star: *>
> returns nothing if it is not in any language block. But if I
> use language blocks, then I don't even need this, I can write en,hu
> explicitly.
> <en>
> <navbar:render name=language select=en nohints>
> </en>
> And so on. Which sounds lame.
But it is really what you want, because your first try is similar to
<navbar:render name=language select="<en>en</en><hu>hu</hu>" nohints>
and there is no such id in your navbar.
But you may define something like
<define-tag navbar:render:lang>
<preserve name array-langs l />
<set-var %attributes />
<set-var array-langs=<lang:list /> />
<foreach l array-langs>
<subst-in-string "<dUmMy:lang:<get-var l />>
<navbar:render name=<get-var name /> select=<get-var l /> nohints />
</dUmMy:lang:<get-var l />>" "dUmMy:" "" />
</foreach>
<restore name array-langs l />
</define-tag>
and call it with
<navbar:render:lang name=language nohints>
It's tricky, I may explain it in detail if you are interested.
--
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