2014-07-16, 16:51
Hi all, i want to display an alternative label for ListItem.Studio if the label is not found, then show a fallback image "Default.png".
My test code:
Obviously, my code is wrong, no label for ListItem.Studio is displayed. Only the fallback image.
Can someone helps me? Thanks.
My test code:
PHP Code:
<control type="image" id="1000">
<width>96</width>
<height>64</height>
<aspectratio align="center">keep</aspectratio>
<texture fallback="flags/studios/Default.png">$INFO[Listitem.Studio,flags/studios/,.png]</texture>
</control>
<control type="label">
<width>200</width>
<height>64</height>
<align>left</align>
<label>$INFO[ListItem.Studio]</label>
<font>condensed_20-U</font>
<textcolor>Color9</textcolor>
<wrapmultiline>true</wrapmultiline>
<visible>Control.GetLabel(1000) + SubString(Control(1000),Default.png)</visible>
</control>
Obviously, my code is wrong, no label for ListItem.Studio is displayed. Only the fallback image.
Can someone helps me? Thanks.