MediaPortal Windows Media Center
MediaPortal Wiki > MediaPortal 1 > Contribute > Skins > Skin Related Changes > 1.0.1 to 1.1.0 > Index Item Number Display

Index Item Number Display

Was this page helpful?
    Table of contents
    1. 1. Purpose
    2. 2. Description of change

    Purpose

    Returns the index (i.e. number of item in a list) of the currently selected item for skin creators to use if they wish. Note that if the selected item is "..", then an empty string is returned.

    Description of change

    For example you can add #selectedindex to #itemcount:

    <label>#selectedindex of #itemcount</label>

    Which results in: 5 of 525 objects when you are viewing the 5th item in a list of 525 items.

    This patch is intended to be used with the textcontent3 patch (approved for 1.2.0) to generate numbered lists.

    See Forum Thread Add GUI Property #selectedindex for further info and examples




    Running the latest version?

    V1.7.0 - released April 2014
    Releasenews | Download
    Changelog
     | Requirements
    HTPC
    Team-MediaPortal
     
    About
    Contact |  Press
    Partners