2016-01-17, 23:33
(2016-01-17, 22:56)Angelinas Wrote: Is this possible to make in script that this code work ? or something like this....
Look a few posts back at the request of JayZ2K...
I have added an optional <onselect> element to the xml which will enable you to set muliple command if one setting is chosen.
PHP Code:
<setting id="HomeLayout_titantiles" value="1" label="$LOCALIZE[31033]" condition="" icon="special://skin/extras/viewthumbs/homelayout_1.jpg" description="$LOCALIZE[31033]">
<onselect condition="True">Skin.Reset(OpenSubMenuOnClick)</onselect>
<onselect condition="True">Skin.SetString(widgetstyle,landscape)</onselect>
<onselect condition="True">Skin.SetString(widgetstyle.label,Landscape)</onselect>
</setting>
Note that you can also use $Info labels for the ID and optional actions.