Posts: 52
Joined: Jun 2014
Reputation:
0
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>
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
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.
Posts: 52
Joined: Jun 2014
Reputation:
0
Hi ronie,
Thanks a lot for the reply. Want to use it inside. How can use it inside the container?
/T
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
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.
Posts: 52
Joined: Jun 2014
Reputation:
0
Yes I will try. Thanks for the info
Posts: 445
Joined: Sep 2015
Reputation:
1
Out of curiosity. Why would you need that to show inside a list?
Posts: 195
Joined: Feb 2010
Reputation:
0
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.