Kodi Community Forum

Full Version: Current List Item Number
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I need to show the current/selected list item number in a list of items of a container. I am using the following element but it doesn't show-up. Kindly help.

<control type="label">
<posx>760</posx>
<posy>0</posy>
<width>30</width>
<height>30</height>
<font>font13</font>
<textcolor>white</textcolor>
<align>left</align>
<aligny>center</aligny>
<label>$INFO[Container(13).CurrentItem]</label>
</control>
the code looks ok to me.
are you perhaps using this label inside your list container?

it will only work if you place it outside of the container.
Hi ronie,

Thanks a lot for the reply. Want to use it inside. How can use it inside the container?

/T
you can't :-)
only ListItem.* infolabels are supported inside lists.

in case we're talking about a list with static content, you could try to set it as a property to the individual items,
though i'm unsure whether that will work correctly.
Yes I will try. Thanks for the info
Out of curiosity. Why would you need that to show inside a list?
Hello, is this still not possible?

I like to have something like that for the Songs List-View (where all songs in the library are listed, not just a album). I have sorted the list by Songname and it would be nice to have also shown the currenitem-number (not tracknumber, since its reduntant with multiple albums) infront of each song.