display thumb from favorites
#1
Is it possible to grab an Icon for a list this way. I realize the thumb code in this example is wrong. Was hoping someone could point me in the right direction.
PHP Code:
<item id="1">             
<
label>$INFO[Skin.String(Custom1_Label)]</label
<
onclick>$INFO[Skin.StringCustom1_Path)]</onclick>
<
visible>Skin.HasSetting(Custom1)</visible>
<
onclick>Container.SetViewMode(817)</onclick

<
thumb>$INFO[Window(1114).Property(Skin.String.Custom1_Path.Thumb)]</thumb>
</
item
Reply
#2
If this for use in the custom_DialogFavourites.xml then try this -
PHP Code:
<onclick>Skin.SetString($INFO[Skin.String(Custom1_Thumb)],$INFO[Window(0).Property(favourite.1.thumb)])</onclick
Reply
#3
Hitcher Wrote:If this for use in the custom_DialogFavourites.xml then try this -
PHP Code:
<onclick>Skin.SetString($INFO[Skin.String(Custom1_Thumb)],$INFO[Window(0).Property(favourite.1.thumb)])</onclick

Sorry. I should have specified it is a list on a video page that is using a custom link from the favorite menu that is being set from custom skin settings.
Reply
#4
In that case this is how I do it -

Custom Settings -
PHP Code:
<control type="button" id="5004">
    <include>
SettingsLabel</include>
    <
label>        $LOCALIZE[424$LOCALIZE[31271]</label>
    <
onclick>Skin.Reset(ProgramButtonName_1)</onclick>
    <
onclick>Skin.Reset(ProgramButtonImage_1)</onclick>
    <
onclick>Skin.SetString(CustomFavouritePath,ProgramButtonPath_1)</onclick>
    <
onclick>Skin.SetString(CustomFavouriteName,ProgramButtonName_1)</onclick>
    <
onclick>Skin.SetString(CustomFavouriteThumb,ProgramButtonImage_1)</onclick>
    <
onclick>ActivateWindow(1114)</onclick>
    <
visible>Skin.HasSetting(ProgramItems) + Skin.HasSetting(ProgramButton_1)</visible>
</
control

Display favourite -
PHP Code:
<item id="3">
    <
label>$INFO[Skin.String(ProgramButtonName_1)]</label>
    <
icon>$INFO[Skin.String(ProgramButtonImage_1)]</icon>
    <
onclick>$INFO[Skin.String(ProgramButtonPath_1)]</onclick>
    <
visible>Skin.HasSetting(ProgramButton_1) + !IsEmpty(Skin.String(ProgramButtonName_1))</visible>
</
item
Reply
#5
Thanks Hitcher I'm going to give it a try.
Reply

Logout Mark Read Team Forum Stats Members Help
display thumb from favorites0