(2019-01-26, 14:28)jurialmunkey Wrote: @MacGyver - I tested this in Krypton and it doesn't work there either.
The posts you linked of Arctic Zephyr show code referencing Container(ID).ListItem.Property(Property) in a control **OUTSIDE** of the itemlayout/focusedlayout of the list.
As I stated before, using Window Properties or referencing other containers has never worked **inside** <itemlayout> or <focusedlayout>
It did work in every version prior to 18 Alpha2.
Here is the current Metropolis WIP with the gui version changed to 5.13.0 and running on Kodi 18 Alpha 1.
And here is the same current Metropolis WIP with it set back to 5.14.0 and running on Kodi 18 RC 5.
It has behaved this way since Alpha 2.
It is used in a lot of skins in listviews.
Here is a snipit from Aeon Nox includes_widgets.xml (starting at line 512):
Code:
<control type="list" id="8000">
<left>31</left>
<top>31</top>
<width>360</width>
<height>360</height>
<onup>8000</onup>
<ondown>8000</ondown>
<onleft>9000</onleft>
<onright>9000</onright>
<onback>9000</onback>
<viewtype label="535">list</viewtype>
<pagecontrol />
<orientation>vertical</orientation>
<onclick condition="String.IsEqual(Container(9000).ListItem.Property(WidgetType),13)">$INFO[ListItem.FileNameAndPath]</onclick>
<scrolltime tween="quadratic" easing="out">200</scrolltime>
<visible>!String.IsEmpty(Container(9000).ListItem.Property(Widget))</visible>
...
...
Here is a link to Aeon Nox's Github repo with it still in use.
Granted it's not being used in a ltemlayout in Aeon Nox, but other skins may still use it the way Metropolis does.
The not displaying is not the issue, it's that the variable portion doesn't work because of the value not being available.
Here is what this code displays (the default value), because the property is no longer available.
Code:
<variable name="GlobalWidgetLabel">
<value condition="String.IsEqual(Container(9000).ListItem.Property(WidgetType),movies)">$INFO[ListItem.Title]$INFO[ListItem.Year, (,)]</value>
<value condition="String.IsEqual(Container(9000).ListItem.Property(WidgetType),episodes)">$INFO[ListItem.TVShowTitle] - $INFO[ListItem.Season]x$INFO[ListItem.Episode,,. ]$INFO[ListItem.Title]</value>
<value condition="String.IsEqual(Container(9000).ListItem.Property(WidgetType),albums)">$INFO[ListItem.Artist] - $INFO[ListItem.Title]$INFO[ListItem.Year, (,)]</value>
<value condition="String.IsEqual(Container(9000).ListItem.Property(WidgetType),songs)">$INFO[ListItem.Artist] - $INFO[ListItem.Title]</value>
<value condition="String.IsEqual(Container(9000).ListItem.Property(WidgetType),musicvideos)">$INFO[ListItem.Artist] - $INFO[ListItem.Title]</value>
<!-- fixing the playlists content labels -->
<value condition="String.IsEqual(Container(9000).ListItem.Property(widget), Playlist) + String.IsEmpty(Container(8000).ListItem.TVShowTitle)">$INFO[ListItem.Title]$INFO[ListItem.Year, (,)]</value>
<value condition="String.IsEqual(Container(9000).ListItem.Property(widget), Playlist) + !String.IsEqual(ListItem.Title, ListItem.TVShowTitle) + !String.IsEmpty(Container(8000).ListItem.TVShowTitle)">$INFO[ListItem.TVShowTitle] - $INFO[ListItem.Season,,x]$INFO[ListItem.Episode,,. ]$INFO[ListItem.Title]</value>
<!-- default -->
<value>$INFO[ListItem.Label]</value>
</variable>
Kodi 18 RC 5
And as you can see in the Alpha1 example, the same code worked perfectly fine and is formatting the movies with the proper year info.