Kodi Community Forum

Full Version: Access to Skin.String from itemlayout
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
either use

$INFO[Skin.String(stringname)]

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

or

$VAR[VariableName]
Skin strings dont work inside containers. iirc this is done because of performance issues.
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.