Kodi Community Forum

Full Version: Include conditions query
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I have a fixedlist with multiple includes with conditions to determine the focusposition as so:

Code:
<include condition="Skin.HasSetting(KodiFlixCenterFocus) + !Skin.Hassetting(KodiFlixCenterList) + !Skin.HasSetting(KodiFlixShortList) + !Skin.HasSetting(KodiFlixBoxsets) + !Skin.HasSetting(KodiFlixDVDShelfView)">KodiFlixCenterFocusPosNormal</include>
                <include condition="Skin.HasSetting(KodiFlixBoxsetCenterFocus) + !Skin.Hassetting(KodiFlixCenterList) + !Skin.HasSetting(KodiFlixShortList) + Skin.HasSetting(KodiFlixBoxsets)">KodiFlixCenterFocusPosBoxsets</include>
                <include condition="Skin.HasSetting(KodiFlixCenterFocus) + Skin.Hassetting(KodiFlixCenterList) + ![[Container.Content(movies) | Container.Content(sets)] + Skin.HasSetting(KodiFlixDVDShelfView)]">KodiFlixCenterFocusPosShort</include>
                <include condition="!Skin.HasSetting(KodiFlixCenterFocus)">KodiFlixNormalFocusPos</include>

The includes themselves:

Code:
<include name="KodiFlixCenterFocusPosNormal">
        <focusposition>4</focusposition>
    </include>
    <include name="KodiFlixCenterFocusPosBoxsets">
        <focusposition>3</focusposition>
    </include>
    <include name="KodiFlixCenterFocusPosShort">
        <focusposition>1</focusposition>
    </include>
    <include name="KodiFlixNormalFocusPos">
        <focusposition>0</focusposition>
    </include>

Now this was all working fine, using reloadwindowclick, and setting focused correctly depending on the hassetting checks, but the problem is I only want one include, the 2nd one, to execute if content is tvshows or seasons and it seems Container.Content is not available at the point of defining focuseposition so would anyone have any suggestions or perhaps another way I can do this? Can I use a VAR or perhaps PARAM, haven't used PARAM yet in any form?

TIA,

Mike.
not possible, you have to create separate containers