2014-03-11, 01:58
I'm using this list in Home, and I would like to hide it and the group it is in when there are no items in the container:
However, using this way it's never visible. Is it even possible or does this go wrong because retrieving the list, and thus evaluating the number of items, takes place after the visibility condition is already set?
PHP Code:
<control type="group">
<include>screen_Dimensions</include>
<visible>IntegerGreaterThan(Container(9140).NumItems,0)</visible>
<control type="list" id="9140">
<width>screen_Width</width>
<include>shelf_Container</include>
<itemlayout width="screen_Width" height="screen_Height">
<include>shelf_ContainerCommons</include>
</itemlayout>
<focusedlayout width="screen_Width" height="screen_Height">
<include>shelf_ContainerCommons</include>
<include>shelf_ContainerCommons-fo</include>
</focusedlayout>
<content target="video">special://skin/playlists/movies/recommended.xsp</content>
</control>
</control>
However, using this way it's never visible. Is it even possible or does this go wrong because retrieving the list, and thus evaluating the number of items, takes place after the visibility condition is already set?