Current List Item Number
#1
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>
Reply
#2
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.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Hi ronie,

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

/T
Reply
#4
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.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#5
Yes I will try. Thanks for the info
Reply
#6
Out of curiosity. Why would you need that to show inside a list?
Reply
#7
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.
Reply

Logout Mark Read Team Forum Stats Members Help
Current List Item Number0