<nested /> not working in an include.
#1
I use <nested /> elements quite a bit in my skin code. However, I have one include where the <nested /> tag wont work and I absolutely cannot figure out why it doesn't work. I'm completely stumped on this one:

PHP Code:
<include name="Home_Fixed_Menu">
    <
param name="visible" default="!Control.HasFocus(302) | !Skin.HasSetting(HomeMultiHorizontal) | !Skin.HasSetting(HomeMulti)" />
    <
param name="icon" default="special://skin/extras/icons/home.png" />
    <
param name="id" default="301" />
    <
param name="font" default="font_topbar" />
    <
param name="content" default="skinshortcuts-mainmenu" />
    <
definition>
        <
control type="group">
            <
top>55</top>
            <
left>view_pad</left>
            <include>
Animation_Home_MenuFlip</include>
            <
visible allowhiddenfocus="true">$PARAM[visible]</visible>
            <
control type="group">
                <
height>70</height>
                <
width>1200</width>
                <
control type="image">
                    <
left>-18</left>
                    <
height>70</height>
                    <
width>70</width>
                    <
aspectratio>keep</aspectratio>
                    <
texture colordiffuse="main_fg_30">$PARAM[icon]</texture>
                </
control>
                <
control type="image">
                    <
right>-134</right>
                    <
visible>Container($PARAM[id]).HasNext Container($PARAM[id]).HasPrevious</visible>
                    <
centertop>55%</centertop>
                    <
width>24</width>
                    <
height>24</height>
                    <
texture flipx="true" colordiffuse="main_fg_30">buttons/spin-left.png</texture>
                </
control>
                <
control type="list" id="$PARAM[id]">
                    <
nested />
                    <
top>0</top>
                    <
left>70</left>
                    <
right>-70</right>
                    <
orientation>horizontal</orientation>
                    <
visible>Window.IsVisible(Home) + !$EXP[Exp_InfoVisible]</visible>
                    <
itemlayout width="200" height="70">
                        <
control type="label">
                            <
left>10</left>
                            <
right>10</right>
                            <
label>$INFO[ListItem.Label]</label>
                            <
align>center</align>
                            <
height>70</height>
                            <
font>$PARAM[font]_small</font>
                            <
textcolor>main_fg_30</textcolor>
                        </
control>
                    </
itemlayout>
                    <
focusedlayout width="200" height="70">
                        <
control type="label">
                            <
left>10</left>
                            <
right>10</right>
                            <
label>$INFO[ListItem.Label]</label>
                            <
align>center</align>
                            <
height>70</height>
                            <
font>$PARAM[font]</font>
                            <
textcolor>main_fg_100</textcolor>
                            <
visible>Control.HasFocus($PARAM[id])</visible>
                        </
control>
                        <
control type="label">
                            <
left>10</left>
                            <
right>10</right>
                            <
label>$INFO[ListItem.Label]</label>
                            <
align>center</align>
                            <
height>70</height>
                            <
font>$PARAM[font]</font>
                            <
textcolor>main_fg_30</textcolor>
                            <
visible>!Control.HasFocus($PARAM[id])</visible>
                        </
control>
                    </
focusedlayout>
                    <
content><include>$PARAM[content]</include></content>
                </
control>
            </
control>
        </
control>
    </
definition>
</include> 
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
#2
The only way I got it to work was by breaking it up into smaller includes - one for the list and one for the rest.
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
#3
hm.i have same use case, but working.
only difference i could see is the placement of the nested tag element ( i use it on top )

call
https://github.com/marduklev/skin.swan-a...h.xml#L325
definition
https://github.com/marduklev/skin.swan-a...s.xml#L583

a workaround could for ommit the nested tag is conditional include call, something like
xml:

...
<include content="dyn_c" condition="$PARAM[load_dynamic]" />
<include content="static_c" condition="$PARAM[load_static]" />
...


<include name="dyn_c">
<content sortby="episode" target="videos">$INFO[Container(502).ListItemAbsolute(0).FolderPath]</content>
</include>
Skins |  Titan M O D   •   S W A N (WIP)
Reply

Logout Mark Read Team Forum Stats Members Help
<nested /> not working in an include.0