2012-10-13, 16:44
Hi just a quick question how does the following work?
In my quest of learning and to get the skin I want I've been playing around with a list to display a list of albums that I have on my server, whilst looking around at various lists I came across the above and decided to tested it.
When I first enter the music menu I get the list of albums on the right like I want, it shows the Album title and underneath it shows the artist (As expected).
When I drill into an album I now get the track listing as expected but this time I get a Album - Title - Artist and underneath it I get the duration (Ideally I would like Song title on top line and duration under it).
Is this something to do with the Label and Label2 tags or is it something to do with confluence as I'm using that as a base to learn from and build my skin?
I looked on the wiki and it explained it as:
Listitem.Label Shows the left label of the currently selected item in a list or thumb control
ListItem.Label2 Shows the right label of the currently selected item in a list or thumb control
Now I've been learning lots but this one confused me lol, can someone dumb it down for a newbie please.
Thanks in advance.
Code:
<label>$INFO[listitem.Label]</label>
<label>$INFO[listitem.Label2]</label>
In my quest of learning and to get the skin I want I've been playing around with a list to display a list of albums that I have on my server, whilst looking around at various lists I came across the above and decided to tested it.
Code:
<itemlayout height="60" width="580">
<description>The Menu</description>
<control type="image">
<description>The Orange Line</description>
<posx>0</posx>
<posy>0</posy>
<width>580</width>
<height>1</height>
<aligny>bottom</aligny>
<texture>RightListDiv.png</texture>
</control>
<control type="label">
<description>Title</description>
<posx>30r</posx>
<posy>-10</posy>
<width>500</width>
<height>50</height>
<label>$INFO[listitem.Label]</label>
<align>right</align>
<aligny>center</aligny>
<font>prom30</font>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
</control>
<control type="label">
<description>Artist</description>
<posx>30r</posx>
<posy>15</posy>
<width>500</width>
<height>50</height>
<label>$INFO[listitem.Label2]</label>
<align>right</align>
<aligny>center</aligny>
<font>prom18</font>
<textcolor>grey</textcolor>
<shadowcolor>black</shadowcolor>
</control>
</itemlayout>
<focusedlayout height="60" width="580">
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>580</width>
<height>1</height>
<aligny>bottom</aligny>
<texture>RightListDiv.png</texture>
</control>
<control type="label">
<description>Title</description>
<posx>30r</posx>
<posy>-10</posy>
<width>500</width>
<height>50</height>
<label>$INFO[listitem.Label]</label>
<align>right</align>
<aligny>center</aligny>
<font>prom30</font>
<textcolor>orange</textcolor>
<shadowcolor>black</shadowcolor>
</control>
<control type="label">
<description>Artist</description>
<posx>30r</posx>
<posy>15</posy>
<width>500</width>
<height>50</height>
<label>$INFO[listitem.Label2]</label>
<align>right</align>
<aligny>center</aligny>
<font>prom18</font>
<textcolor>orange</textcolor>
<shadowcolor>black</shadowcolor>
</control>
</focusedlayout>
When I first enter the music menu I get the list of albums on the right like I want, it shows the Album title and underneath it shows the artist (As expected).
When I drill into an album I now get the track listing as expected but this time I get a Album - Title - Artist and underneath it I get the duration (Ideally I would like Song title on top line and duration under it).
Is this something to do with the Label and Label2 tags or is it something to do with confluence as I'm using that as a base to learn from and build my skin?
I looked on the wiki and it explained it as:
Listitem.Label Shows the left label of the currently selected item in a list or thumb control
ListItem.Label2 Shows the right label of the currently selected item in a list or thumb control
Now I've been learning lots but this one confused me lol, can someone dumb it down for a newbie please.
Thanks in advance.