2021-04-18, 18:31
Ok, sorry, fixed it..... User error of course
Didn't realise I need to pass the rule into the script when rebuilding:-
Works fine for all regular content, but has no knowledge of what genres-music is
Is the way to do it, just in case somebody else runs in to the same issue
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
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