Conditional visibility of a group or include
#1
Can I add conditions to includes or groups instead of having the same condition for several controls?
Reply
#2
sure, for groups it works 100%... never tried it for includes but I see no reason why it wouldn't
Reply
#3
Includes simply drop the XML in the include inline into wherever the include is drawn from - XBMC only sees the complete XML. Thus, it'll work identically.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#4
What am I doing wrong in this then?

Code:
<include condition="Container.Content(tvshows)">TV_Shows_banner</include>
Reply
#5
The container content isn't know when the window loads.
Reply
#6
I'm still struggling with all of this Smile
How would I make different controls come up for different contents?
Do I have to make a visibility condition for every control?
Reply
#7
PHP Code:
<control type="list" id="50">
    <
visible>Container.Content(movies)</visible>
    [...]
</
control>

<
control type="list" id="51">
    <
visible>Container.Content(tvshows)</visible>
    [...]
</
control

or

PHP Code:
<control type="list" id="50">
    [...]
    <
itemlayout condition="Container.Content(movies)">
    </
itemlayout>
    <
itemlayout condition="Container.Content(tvshows)">
    </
itemlayout>
    <
focusedlayout condition="Container.Content(movies)">
    </
focusedlayout >
    < 
focusedlayout condition="Container.Content(tvshows)">
    </
focusedlayout >
</
control
Image
Reply

Logout Mark Read Team Forum Stats Members Help
Conditional visibility of a group or include0