[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Problem with ifeq under 2.0.0



Hello,

I'm having problems after upgrading from 1.7.4 to 2.0.0. Has someone an
got idea what happened ? Maybe _I_ did something wrong before, which takes
revenge on me _now_ ... >;-)

My machine is a freshly installed redhat 6.2 without any upgrades.

I'd like to put page-dependend top-of-page-logos and I want to define them
in the main template file, where <html>, <body> ... is built together.
In all other files i'm using the following line to include/use the
template:

#use blupp.wml area=service page=ae IMG=img SNB_RC=service.wmlsnb

So far ...
In blupp.wml you can find the following:

<!-- BEGIN select logo -->
<ifeq "$(area)" "news" <IMG SRC="img/header-news.jpg">>
<ifeq "$(area)" "service" <ifeq "$(page)" "al" <IMG SRC="img/header-al.jpg">> >
<ifeq "$(area)" "service" <ifeq "$(page)" "oa" <IMG SRC="img/header-oa.jpg">> >
<ifeq "$(area)" "service" <ifeq "$(page)" "ae" <IMG SRC="img/header-ae.jpg">> >
<ifeq "$(area)" "service" <ifeq "$(page)" "kw" <IMG SRC="img/header-kw.jpg">> >
<ifeq "$(area)" "gaestebuch" <IMG SRC="img/header-gaestebuch.jpg">>
<!-- END select logo -->

so in this case, the result should be (and ever was):

<!-- BEGIN select logo -->
<IMG SRC="img/header-ae.jpg">
<!-- END select logo -->

But now the result is:
<!-- BEGIN select logo -->
 >
 >
 >
 >
SRC=img/header-news.jpg>
SRC=img/header-al.jpg >
SRC=img/header-oa.jpg >
<IMG>
SRC=img/header-kw.jpg >
SRC=img/header-gaestebuch.jpg>
SRC=img/header-gal.jpg>
SRC=img/header-presse.jpg>
 >
SRC=img/header-email.jpg>
<!-- END select logo -->


In fact, before (i.e. in 1.7.4) I used:
<!-- BEGIN select logo -->
<ifeq "$(area)" "news" <prog <IMG SRC="img/header-news.jpg">> >
<ifeq "$(area)" "service" <prog <ifeq "$(page)" "al" <prog <IMG SRC="img/header-al.jpg">> >  >>
<ifeq "$(area)" "service" <prog <ifeq "$(page)" "oa" <prog <IMG SRC="img/header-oa.jpg">> >  >>
<ifeq "$(area)" "service" <prog <ifeq "$(page)" "ae" <prog <IMG SRC="img/header-ae.jpg">> >  >>
<ifeq "$(area)" "service" <prog <ifeq "$(page)" "kw" <prog <IMG SRC="img/header-kw.jpg">> >  >>
<ifeq "$(area)" "gaestebuch" <prog <IMG SRC="img/header-gaestebuch.jpg">> >
<!-- END select logo -->

But this already failed to compile in pass (was it?) 2 under 2.0.0 so I
removed the <prog ...> tags.

I'd like to use this mechanism aside, i.e. along with a page navbar, which
is sited somewhere else in the document...
Maybe I have to combine it with the navbar ?? (I never knew how to do
that, if it was possible at all).

What am I doing wrong ? :)
Is there a more elegant or efficient way to solve my problem ?

Thanks for reading and sorry for it was a very long description... :-)
ciao - Michael
-- 
Michael Kress / kress@hal.saar.de / coroner@irc
http://pandemonium.abyss.saar.de/~kress
To increase system performance press CTRL+D now.
P E N G U I N S   A R E   C O O L.

______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com