Kodi Community Forum

Full Version: Strange Problem with variable content (for Addons)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Got a Strange Problem with Variable Content (Addons)

this works:

PHP Code:
<content target="$VAR[WidgetTarget]">addons://sources/video/</content> 

this dont: (?)

PHP Code:
<content target="$VAR[WidgetTarget]">Focus(1)Widget-Left</content

PHP Code:
<variable name="Focus(1)Widget-Left">
        <
value condition="Skin.HasSetting(LeftAddonWidgetShow-VideoAddons)">addons://sources/video/</value> 
        
<value condition="Skin.HasSetting(LeftAddonWidgetShow-MusicAddons)">addons://sources/audio/</value>
        
<value condition="Skin.HasSetting(LeftAddonWidgetShow-PictureAddons)">addons://sources/images/</value>
        
<value condition="Skin.HasSetting(LeftAddonWidgetShow-ProgramAddons)">addons://sources/executable/</value>
        
<value condition="Skin.HasSetting(LeftAddonWidgetShow-Nothing)"></value>
        <
value>addons://sources/video/</value>
    
</variable

No Idea Why. struggling around with this for a hour or so, no Idea left what i could have done Wrong.
(2015-09-21, 21:33)Rantanplan-1 Wrote: [ -> ]this dont: (?)

PHP Code:
<content target="$VAR[WidgetTarget]">Focus(1)Widget-Left</content

that should be $VAR[Focus(1)Widget-Left] no?
Dam in such a xxxx

Thanks. Dam did try everything but that one didnt jump in my eye.

Think i shuld stop skinning for Today. Undecided Sad Undecided

Thanks!