Can you have multiple conditions on an include
#1
Hi,

I have a list and I'm using includes with conditions to control the width of the list as follows:

Code:
<include condition="Skin.HasSetting(KodiFlixShortList)">KodiFlixShortListWidth</include>
    <inclide condition="!Skin.HasSetting(KodiFlixShortList)">KodiFlixNormalListWidth</inclide>

This working fine but if I attempt to alter the fist line to:

Code:
<include condition="Skin.HasSetting(KodiFlixShortList) + Container.Content(movies)">KodiFlixShortListWidth</include>

The it seems to break and the list just shows at normal length.

includes:
Code:
<include name="KodiFlixNormalListWidth">
    <width>2495</width>
</include>
<include name="KodiFlixShortListWidth">
    <width>620</width>
</include>

Screenshots:

watch gallery


1st one is with switch active, 2nd one is deactive. if I attach the movies check then all I get is the 2nd screenshot?

Any help is much appreciated and thanks.

Mike
SKIN: Aeon Madnox
RIP Schimi2k, we miss you.
When I grow up I want to be a skilled skinner
Thank me by ⬇ adding to my + reputation
Reply
#2
using Container.Content() for includes does not make sense (when includes get resolved it is not set yet). That's also the reason why it does not work.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#3
Ok, thanks Phil.

Would you have any suggestion on how to correctly control the width of the list depending on a switch and the content being viewed?
SKIN: Aeon Madnox
RIP Schimi2k, we miss you.
When I grow up I want to be a skilled skinner
Thank me by ⬇ adding to my + reputation
Reply
#4
(2015-07-09, 16:56)Mike_Doc Wrote: Ok, thanks Phil.

Would you have any suggestion on how to correctly control the width of the list depending on a switch and the content being viewed?

make two different lists or fiddle around with item/focusedlayout.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#5
Thanks Phil.
SKIN: Aeon Madnox
RIP Schimi2k, we miss you.
When I grow up I want to be a skilled skinner
Thank me by ⬇ adding to my + reputation
Reply
#6
Or use the same list with width=$PARAM[width] then call the include for each condition with a different <param name="width" value="MY_VALUE_HERE" />
[Skin] KOver - V1.1.0 Stable (Repo version)
[WIP] ReKOver - Skinning tool project

If I've been helpful or you like my work, hit "THANK USER" button ;) ...
Reply
#7
Thanks Jayz2k, will look into the option as well.
SKIN: Aeon Madnox
RIP Schimi2k, we miss you.
When I grow up I want to be a skilled skinner
Thank me by ⬇ adding to my + reputation
Reply

Logout Mark Read Team Forum Stats Members Help
Can you have multiple conditions on an include0