2016-12-07, 23:36
(2016-12-07, 23:21)BobCratchett Wrote: Take a look at Static List Content (wiki) for how to define a static content for a panel.Thanks, I will try it
Your final panels may look - very broadly - similar to the following. The first is for your custom widget with its static content. The second is for the various widgets Skin Shortcuts automatically allows the user to select with their dynamic content. However, the specific implementation - along with which properties you choose to check against (for example, you may wish to use widgetType to provide different layouts for music, movies, tvshows etc) is entirely a skinning issue.
It's worth checking the script-skinshortcuts-includes.xml file so you can see exactly what properties (and what values) are assigned to menu items.
Code:<control type="panel">
<!-- Show when it's the custom widget you've added -->
<visible>String.IsEqual(Container([id-of-main-menu]).ListItem.Property([property-you're-checking-against]),[value-you're-checking-against])</visible>
<!-- position, size, onup, etc -->
<itemlayout />
<focusedlayout />
<content>
<item />
<item />
...
</content>
</control>
<control type="panel">
<!-- Show when it's not the custom widget you've added -->
<visible>!String.IsEqual(Container([id-of-main-menu]).ListItem.Property([property-you're-checking-against]),[value-you're-checking-against])</visible>
<!-- position, size, onup, etc -->
<itemlayout />
<focusedlayout />
<content target="$INFO[Container([id-of-main-menu]).ListItem.Property(widgetTarget)]">$INFO[Container([id-of-main-menu]).ListItem.Property(widgetPath)]</content>
</control>