Hi i got an idea to set custom widget paths and targets without using an addon (e.g. script.skinshortcuts)
As i am not very experienced in skinning, i came here to hear some thoughts if i will get issues using this method.
which is untested and just exist as theory.
And cannot test it in next time myself.
I like to ping @
sualfred & @'Jurialmonkey' to forcing take a quick look and hope to get some thoughts.
shortcut workaround ,
- use container.folderpath in my[foo]nav.xml
- skinsettings.xml :
button(s) - set prop - SetProperty(custom_widget_nr,01,home)
- activate custom window
[e.g.: SetProperty(custom_widget_nr,$PARAM[nr],home)
- custom window
button(s) - activate.window ( go to kodi native paths and set content target string, for reference ....
Opening_Windows_and_Dialogs (wiki) )
[e.g.: button
id = 1
label = movies
action = ActivateWindow(videodb://movies/)
action = Skin.SetString(UserWidget$PARAM[nr]_target,videos)
" now navigate ro wished widget path "
- my[foo]nav.xml / previous activated window
e.g.: myvideonav.xml , make sure to add a button there, maybe in menucontrol
which can set containerfolderpath to a skin string
( button
visible = !String.IsEmpty(Window(home).Property(custom_widget_nr))
id = 666
action = Skin.SetString(UserWidget$INFO[Window(home).Property(custom_widget_nr)]_path,$INFO[Container.Folderpath])
action = ReplaceWindowAndFocus(skinsettings, id2,item1, id3,item2) or ReplaceWindow(skinsettings) or ReplaceWindow(customwindow id) - go back to settings if path and target is saved as skinstrings )
action = ClearProperty(custom_widget_nr,home)
)
- move/navigate inside myvideonav/mymusicnav/....
- do some filter/selections via menucontrol
native methods videonav
(3 button Select sort method (sort by: name, date size, etc...)
4 togglebutton Select sortmode (ascending or descending))
14 button Show only unwatched or all videos
19 radiobutton / edit
"In addition may add 'set widget'-layout include need to each view id group, to hide the default layout if String.IsEmpty(Window(home).Property(custom_widget_nr))
and show simple layout if !String.IsEmpty(Window(home).Property(custom_widget_nr))"
" if you are in your prefered path and 'filter' is done , do click custom button (666)
- the filepath and target should stored and can be used
e.g.
<content target="$INFO[Skin.String(UserWidget01_target)]">$INFO[Skin.String(UserWidget$PARAM[nr]_path)]</content>
CONTRA :
- untested : use custom sortby method