Is <nested /> broken?
#1
I can't get <nested /> in an include to work.

This is my include that should have the nested content inserted into it at the bottom:-
xml:
<include name="EpisodeRow">
  <control type="group">
    <top>0</top>
    <height>576</height>
    <include content="WidgetHeader">
      <param name="header" value="$PARAM[header]" />
    </include>
    <include content="WidgetUpdateEpisoder">
      <param name="id" value="$PARAM[id]" />
    </include>
    <control type="fixedlist" id="$PARAM[id]">
      <include content="Animation_BounceRight">
        <param name="id" value="$PARAM[id]" />
      </include>
      <include content="Animation_BounceLeft">
        <param name="id" value="$PARAM[id]" />
      </include>
      <top>43</top>
      <left>-562</left>
      <width>2480</width>
      <height>324</height>
      <onleft>9000</onleft>
      <ondown>$PARAM[onDown]</ondown>
      <onup>$PARAM[onUp]</onup>
      <onback>Setfocus(500)</onback>
      <orientation>horizontal</orientation>
      <preloaditems>2</preloaditems>
      <focusposition>1</focusposition>
      <itemlayout width="562" height="324">
        <control type="group">
          <left>63</left>
          <include content="EpisodeLayout">
            <param name="id" value="$PARAM[id]" />
            <param name="width" value="544" />
            <param name="height" value="306" />
          </include>
        </control>
      </itemlayout>
      <focusedlayout width="562" height="324">
        <control type="group">
          <left>63</left>
          <include content="EpisodeLayout">
            <param name="id" value="$PARAM[id]" />
            <param name="width" value="544" />
            <param name="height" value="306" />
            <param name="focused" value="true" />
          </include>
        </control>
      </focusedlayout>

      <nested />
   
    </control>
  </control>
</include>

This is how I'm calling it:-
xml:
<include content="EpisodeRow">
  <param name="id" value="550" />
  <param name="header" value="$INFO[Container(502).ListItemAbsolute(0).Title]" />
  <param name="onUp" value="noop" />
  <param name="onDown" value="551" />
  <content sortby="episode" target="videos">$INFO[Container(502).ListItemAbsolute(0).FolderPath]</content>
</include>

The <content> never gets inserted into where the <nested /> is. I know there is nothing wrong with the 'EpisodeRow' include because is I remove the <nested /> and manually add the <content> then it works perfectly. So my question is, is <nested /> broken or am I using it wrong?

Seems at least one other person has run into a similar issue @jurialmunkey posted https://forum.kodi.tv/showthread.php?tid=343872
Reply
#2
Thanks for the reply. <nested /> should be replaced by anything in your include call that isn't a param so in your code:-
(2022-07-23, 16:40)mardukL Wrote:
xml:
<include content="EpisodeRow">
  <param name="id" value="550" />
  <param name="header" value="$INFO[Container(502).ListItemAbsolute(0).Title]" />
  <param name="onUp" value="noop" />
  <param name="onDown" value="551" />
  <include condition="true" content="i_nested" />
    <content sortby="episode" target="videos">$INFO[Container(502).ListItemAbsolute(0).FolderPath]</content>
  </include>
</include>

<include name="i_nested">
  <nested />
</include>

Wouldn't that just become:-
xml:
<include content="EpisodeRow">
  <param name="id" value="550" />
  <param name="header" value="$INFO[Container(502).ListItemAbsolute(0).Title]" />
  <param name="onUp" value="noop" />
  <param name="onDown" value="551" />
  <include condition="true" content="i_nested" />
    <content sortby="episode" target="videos">$INFO[Container(502).ListItemAbsolute(0).FolderPath]</content>
  </include>
</include>

<include name="i_nested">
  <include condition="true" content="i_nested" />
    <content sortby="episode" target="videos">$INFO[Container(502).ListItemAbsolute(0).FolderPath]</content>
  </include>
</include>

I've got <nested /> in other parts of my skin which work perfectly fine, it's just this one that's causing problems Sad
Reply
#3
(2022-07-23, 17:05)roidy Wrote: Thanks for the reply. <nested /> should be replaced by anything in your include call that isn't a param so in your code:-
(2022-07-23, 16:40)mardukL Wrote:
xml:
<include content="EpisodeRow">
  <param name="id" value="550" />
  <param name="header" value="$INFO[Container(502).ListItemAbsolute(0).Title]" />
  <param name="onUp" value="noop" />
  <param name="onDown" value="551" />
  <include condition="true" content="i_nested" />
    <content sortby="episode" target="videos">$INFO[Container(502).ListItemAbsolute(0).FolderPath]</content>
  </include>
</include>

<include name="i_nested">
  <nested />
</include>

Wouldn't that just become:-
xml:
<include content="EpisodeRow">
  <param name="id" value="550" />
  <param name="header" value="$INFO[Container(502).ListItemAbsolute(0).Title]" />
  <param name="onUp" value="noop" />
  <param name="onDown" value="551" />
  <include condition="true" content="i_nested" />
    <content sortby="episode" target="videos">$INFO[Container(502).ListItemAbsolute(0).FolderPath]</content>
  </include>
</include>

<include name="i_nested">
  <include condition="true" content="i_nested" />
    <content sortby="episode" target="videos">$INFO[Container(502).ListItemAbsolute(0).FolderPath]</content>
  </include>
</include>

I've got <nested /> in other parts of my skin which work perfectly fine, it's just this one that's causing problems Sad

you're right.
i deleted post as i realised that that it makes the intentiin for element useless.

and replied in wrong thread afterwards.
sorry for confusion.

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
#4
Thanks, I can work around the problem using params but it was just strange that all my other nested includes work except for that one.
Reply

Logout Mark Read Team Forum Stats Members Help
Is <nested /> broken?0