2016-06-19, 13:40
(2016-06-19, 10:48)BobCratchett Wrote: You can't use a file to fill a list like that. The way to achieve what you want varies on whether you're using templates or not.
With templates, put your static items into an include and set the path in the overrides to...
Code:$INCLUDE[whatever-you-named-your-include]
... then, assuming the widgetPath property is being pulled out from the menu item and set as the content, Skin Shortcuts will do the rest.
Without templates, you need to include a separate list for your static content and manage its visibility. I'd personally use the widgetType property for that, so something like the following in your overrides...
Code:<widget type="custom">Test Widget</widget>
... then the list with the static content would have a visibility conditions such as ...
Code:<visible>String.IsEqual(Container(9000).ListItem.Property(widgetType),custom)</visible>
... obviously adjusting the container ID as appropriate, if you're not targeting Krypton using the correct bool rather than String.IsEqual and having any list which is dynamically filled have the inverse visibility.
Thanks Bob, I'll have to study that, it's not sinking in right now!!
I managed to get all the sub menu widgets working from our discussion earlier in this thread (thanks again!) what I'm trying to do now is speed up the content population process as it take a little while currently whilst kodi is loading for all the widgets to appear - hence this question.
I'm using templates so I assume the static item include goes into the template file?