2021-10-22, 17:24
(2021-10-22, 09:46)Chillbo Wrote: That's exactly what I had done here and it didn't work - a hidden list or fixed list container outside the normal focused layout of the current media view container. I placed it in MyVideoNav.xml, but it never properly updated... What might you be doing differently?
@Chillbo , In MyVideoNav.xml I have a conditional include for the hidden container with the movie set, since I only add this if the user has enabled that option in settings:
xml:
<include condition="Skin.HasSetting(ShowSetCount)">SetCountList</include>
The SetCountList include is this:
xml:
<include name="SetCountList">
<!-- Hidden list for movie count for sets -->
<control type="list" id="4450">
<left>-100</left>
<top>-100</top>
<width>100</width>
<height>100</height>
<itemlayout height="100" width="100" />
<focusedlayout height="100" width="100" />
<content sortby="year" sortorder="ascending">$VAR[MovieSetPath]</content>
</control>
</include>
The variable MovieSetPath is:
xml:
<variable name="MovieSetPath">
<value condition="String.IsEqual(ListItem.DBTYPE,set)">videodb://movies/sets/$INFO[ListItem.DBID]/?setid=$INFO[ListItem.DBID]</value>
</variable>
And outside the views main container (and thus outside of itemlayout/focusedlayout), I use the info as shown below (in my case, this is part of an information panel that I show in almost all view types):
xml:
<value condition="String.IsEqual(ListItem.DBType,set) + Integer.IsGreater(Container(4450).NumItems,0)">$LOCALIZE[32253]: $INFO[Container(4450).NumItems]</value>
Hope that helps. Please feel free to check the Amber code for anything that you need.
Regards,
Bart