2015-11-30, 23:49
(2015-11-30, 20:45)BobCratchett Wrote:(2015-11-30, 13:56)Jeroen Wrote: Cheers Bob
I have to admit though at the moment I am behind on recent(ish) developments and as a result a bit confused about the difference between using <shortcut> elements for widgets and defining them as <widget>
I am currently defining then as shortcut in a custom grouping and everything works as intended, but I am unsure if this is the advised way.
Can you please test https://github.com/BigNoid/script.skinsh...s/pull/115 - Cheers
I think its fair to say that the <shortcuts /> were really added for the scripts own use but skinners have found them useful as they allow far more customisation of where their widgets appear. I don't think one is particularly recommended over the other - defining widgets the classic way is a little easier (especially for setting defaults), doing it via <shortcuts /> is more customisable - use whichever works for you
Great, customization it is then
I'm afraid I haven't been able to get it to work though I'm afraid. Code excerpts:
overrides.xml:
PHP Code:
<widget-groupings>
...
<shortcut label="342" type="32099" name="Movies Watchlist" icon="DefaultIconWatchlist.png" widget="Addon" widgetType="movies" widgetTarget="video" condition="System.HasAddon(script.watchlist)">plugin://script.watchlist/?type=movies</shortcut>
where the label should appear:
PHP Code:
<label>$INFO[Container(9000).ListItem.Property(name)]</label>
I can get any of the other properties to show up here, exept from "name". I tried widgetName too, that returns the name listed in the management dialog.
I cleared out the addon data folder too just in case.