- July 12, 2011
- 392
- 206
- Home Country
- Germany
Update: Found my mistake in my first problem, so only question remains:
I'd like to pass a variable to the Control.IsVisible inside a visibility condition like:
where #MenuID is defined in the same xml or any other like SkinSetting.xml. That way I could edit the BasicHome Menu from inside the MP Setting Screen. I tried several possibilities but none worked. Is this somehow possible?
The answer to my question below: seems as if I always had a "#" too much.
work as expected.
My original post
Any help is appreciated! Thanks.
I'd like to pass a variable to the Control.IsVisible inside a visibility condition like:
Code:
<visible>Control.IsVisible(#MenuID)</visible>
The answer to my question below: seems as if I always had a "#" too much.
Code:
<visible>skin.string(#tester3,1)</visible>
and
<visible>skin.hassetting(#tester2)</visible>
My original post
Hi,
I'm referring to the skin settings introduced with MP 1.3.alpha.
I would like to pass a variable defined in SkinSettings.xml to a visibility condition.
I tried the following:
For tests I defined a boolean variable as well as a string variable in SkinSettings.xml:
Now, I'd like to have a (dummy) label being visible or not visible depending on the SkinSetting. A regular expression like
is working as expected.
But if I use the example from the wiki:
the expression is always true regardless if I use #tester3 or #tester4. I also tested many other combinations like:
which also is always true with #tester1 as well as #tester2
Should this work, or not? If it should maybe someone can point me to xml files where such a visibility condition with variables is done?
Furthermore I'd like to pass a variable to the Control.IsVisible inside a visibility condition like:
where #MenuID is defined in the same xml or any other like SkinSetting.xml. That way I could edit the BasicHome Menu from inside the MP Setting Screen. I tried several possibilities but none worked. Is this somehow possible?
I'm referring to the skin settings introduced with MP 1.3.alpha.
I would like to pass a variable defined in SkinSettings.xml to a visibility condition.
I tried the following:
For tests I defined a boolean variable as well as a string variable in SkinSettings.xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<profile>
<section name="booleansettings">
<entry name="#tester1">True</entry>
<entry name="#tester2">False</entry>
</section>
<section name="stringsettings">
<entry name="#tester3">1</entry>
<entry name="#tester4">2</entry>
</section>
</profile>
Now, I'd like to have a (dummy) label being visible or not visible depending on the SkinSetting. A regular expression like
Code:
<visible>Control.IsVisible(1001)|Control.IsVisible(1003)|Control.IsVisible(1007)</visible>
But if I use the example from the wiki:
Code:
<visible>#(skin.string(#tester3,1))</visible>
Code:
<visible>#tester2</visible>
or
<visible>#(skin.hassetting(#tester2))</visible>
Should this work, or not? If it should maybe someone can point me to xml files where such a visibility condition with variables is done?
Furthermore I'd like to pass a variable to the Control.IsVisible inside a visibility condition like:
Code:
<visible>Control.IsVisible(#MenuID)</visible>
Any help is appreciated! Thanks.
Last edited: