Kodi Community Forum

Full Version: ListItem.Label and ListItem.Label2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey everyone,

I have a question today about ListItem.Label/Label2
The Wiki said that ListItem.Label/Label2 shows left/right label of the currently selected item in a list or thumb control.
What does left and right label mean in the context of thumb controls?

At the first read, I interpreted it as a second label that can be filled with static content.

I want to display:
[Album thumb]
Artist name
Album title

With the following code, I only get the thumb and the artist name. The album title never shows.

PHP Code:
<control type="image">
            <
posx>5</posx>
            <
posy>164</posy>
            <
width>250</width>
            <
height>250</height>
            <
texture>$INFO[ListItem.Thumb]</texture>
        </
control>

        <
control type="label">
            <
posx>3</posx>
            <
posy>410</posy>
            <
height>50</height>
            <
font>Small</font>
            <
textcolor>white</textcolor>
            <
info>ListItem.Label</info>
        </
control>

        <
control type="label">
            <
posx>10</posx>
            <
posy>40</posy>
            <
font>XSmall</font>
            <
height>50</height>
            <
textcolor>white</textcolor>
            <
info>ListItem.Label2</info>
        </
control


PHP Code:
<item id="941">
            <
thumb>$INFO[Window.Property(LatestAlbum.4.Thumb)]</thumb>
            <
label>$INFO[Window.Property(RecentAlbum.4.Artist)]</label>
            <
label>$INFO[Window.Property(RecentAlbum.4.Title)]</label>
            <
onclick>-</onclick>
         </
item

I even tried using ListItem.Album and ListItem Artist to no avail.

Can I get some guidance?

Many thanks in advance!
You didn't define label2.

PHP Code:
<item id="941">
    <
thumb>$INFO[Window.Property(LatestAlbum.4.Thumb)]</thumb>
    <
label>$INFO[Window.Property(RecentAlbum.4.Artist)]</label>
    <
label2>$INFO[Window.Property(RecentAlbum.4.Title)]</label2>
    <
onclick>-</onclick>
</
item
Per usual, you are right.
Thank you Hitcher.