Release script.skinvariables - Construct skin variables and perform other skin functions
#43
Ok, sorry, fixed it..... User error of course  Blush

Didn't realise I need to pass the rule into the script when rebuilding:-

Code:
Runscript(script.skinvariables,action=buildviews,contentid=$INFO[Container.Content],pluginname=$INFO[Container.PluginName])

Works fine for all regular content, but has no knowledge of what genres-music is Sad

Code:
     <variable name="ViewModeSwitchVar">
        <value condition="String.IsEqual(Container.Content,genres) + Window.IsVisible(MyMusicNav.xml)">genres-music</value>
        <value condition="!String.IsEmpty(Container.Content)">$INFO[Container.Content]</value>
    </variable>

Code:
Runscript(script.skinvariables,action=buildviews,contentid=$VAR[ViewModeSwitchVar],pluginname=$INFO[Container.PluginName])

Is the way to do it, just in case somebody else runs in to the same issue Big Grin
Reply


Messages In This Thread
RE: script.skinvariables - Construct multiple skin variables from a template. - by roidy - 2021-04-18, 18:31
Logout Mark Read Team Forum Stats Members Help
script.skinvariables - Construct skin variables and perform other skin functions0