[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] 4.0a4 -- Possible bug in Variable parsing
Hi All,
It seems that the variables defined in catalog.cfg won't get
parsed properly when they are on an 'included' page.
Example:
--------
In catalog.cfg:
Variable BGCOLOR #FFFFFF
Variable LOGOBAR <logobar
In file logobar:
<BODY BGCOLOR=__BGCOLOR__>
In test.html
some html and code
__LOGOBAR__
rest of html
This will display page test.html with a white background color,
which is as expected.
When I change the value of variable BGCOLOR to #FF0000 at the top
of page test.html, the page still comes up with a white
background.
However, when I include the logobar by using
[include config/__TEMPLATE__/logobar], then it will display a red
background.
So it seems to me that variable __var1__ in another variable
__var2__ won't get (re)parsed properly.
It really would be nice to be able to change variables on the fly
in all sections of a page and also in the 'pre-loaded' ones (like
logobar and friends).
Could it be that the code in Interpolate.pm never reaches the
if(shift) section?
If the above is the intended behaviour, how to get around it so I
can change all vars on the fly without having the pages to
include with the [include ...] tag.
All the best,
Ton