2016-05-02, 09:10
(2016-05-02, 06:17)willcmuk Wrote:(2016-04-25, 19:59)BobCratchett Wrote: And what appears in the built template in the script-skinshortcuts-includes.xml file? (And yes, that's the zip for the latest version)
Hi Bob, I got the sub widgets to appear but had to "hard-code" the template in the includes_home.xml file so that I could use a variable in the content markup rather than use the template.xml file and $SKINSHORTCUTS[content] - for some reason the output in script.skinshortcuts-includes.xml was not working, to my eyes at least it looks correct...
http://pastebin.com/g2qpJNDc
Sounds like you still need to check what appears in the built template.
Within the template.xml file - I presume (I haven't looked at any code you may have linked to, though I have looked at your most recent link - which only confirms that a menu item has a widgetPath property) - you have a template, presumably of the correct type. Within that template you are pulling out the widgetPath property as you've said:-
Code:
<property name="content" tag="property" attribute="name|widgetPath" />
and then you'll be using it somewhere:-
Code:
<content>$SKINSHORTCUTS[content]</content>
The first check you need to do to debug this issue is checking what the script is doing with those two lines. - that means finding the relevant code in the built script-skinshortcuts-includes.xml file and looking to see what the <content>$SKINSHORTCUTS[content]</content> line looks like once the template has been processed.
(Can't find the <content> line? Add...
Code:
<description>TEST</description>
... right above it in the template and search for that once it's built)
The second check you'll need to do will vary depending on what it does look like. One of three things is likely...
(1) Your template isn't being built at all - check you're using the correct type of template, check there are items that would trigger that template (including checking the conditions for your template), enable the scripts own debug logging option and check the Kodi log
(2) It still says $SKINSHORTCUTS[content] - normally caused by a typo in the template, but also enable the scripts own debug logging option and check the Kodi log
(3) You see exactly the value you expect to see instead of $SKINSHORTCUTS[content] - the script is working right, but you have a problem on the skinning side.