Kodi Community Forum

Full Version: How to read Skin.String(name) in the <control type = "list"> - Jarvis
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to read $INFO[Skin.String (name)] (or $VAR[....] or item from another list) to the list of controli <itemlayout> and <focusedlayout>?
I always get an empty string. Sad
Outside the list command $INFO[Skin.String (name)] works well.
PHP Code:
<Control type="list">
     (...)
     <
Itemlayout height="230" width="320">
          (...)
          <
Control type "label">
              <
Top>0</top>
              <
Width>270</width>
              <
Height>270</height>
              <!-- 
Always I getting empty string! -->
              <
Label>$INFO[Skin.String(name)]</label>
           </
Control>
     </
Itemlayout>
     <
Focusedlayout height="230" width="320">
           (...)
     </
Focusedlayout>
     (...)
</
Control

Thank you for your help.
yup, that won't work, you can only use ListItem.* infolabels inside lists.
Thanks for the quick help.

Can I add an additional field (manually from the skin) to the dynamic list?

Thanks again for your help.
nope, it will only work on lists with static content (afaik).
Thanks again for your help.
You can set a property to use in list, or I think skin.helper service can provide strings for containers.
Hi @badaas,
only for static lists.
I have a dynamic list.
PHP Code:
(...)
<
content>plugin://script.extendedinfo?info=discography&amp;&amp;artistname=$INFO[ListItem.Artist]</content>
(...) 
I want to combine the dynamic property list with Skin.String (name) in the <itemlayout> and <focusedlayout>
PHP Code:
(...)
$INFO[Skin.String(CustomMusicLogoPath)]$INFO[ListItem.Artist]/$INFO[ListItem.Album,,/cdart.png]
(...)