Access to Skin.String from itemlayout
#1
Does anyone know of a workaround for getting skin variables when in the itemlayout and focusedlayout sections of for example a panel?

From my testing this returns empty in an itemlayout:

Code:
$INFO[Skin.String(variablename)]

But can be accessed with no issues out of the item and focused layouts.
Reply
#2
either use

$INFO[Skin.String(stringname)]

(not sure atm if skin strings work in container layouts)

or

$VAR[VariableName]
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#3
Skin strings dont work inside containers. iirc this is done because of performance issues.
Reply
#4
Thanks guys, I managed to get around it by setting a property on the content for the container.

So for example:

<property name="propertyname">$INFO[Skin.String(variablename)]</property>

And then accessing it via the ListItem.Property(propertyname) method.

Thanks for the replys.
Reply

Logout Mark Read Team Forum Stats Members Help
Access to Skin.String from itemlayout0