removed151214
Unregistered
removed151214
Unregistered
Posts: N/A
Didn't realise that, thanks
in that case yes, it should be relatively easy to do! And cheers Martijn - that should make it even easier!
(2014-06-12, 12:55)phate89 Wrote: Actually a multipath is a list of paths. composed like this:
multipath://path1/path2/.../pathx/
It's only matter of removing multipath:// and split the string by "/", check the function _get_path_list from the list i gave you (in a second editing)
removed151214
Unregistered
removed151214
Unregistered
Posts: N/A
@
phate89, multipath support and a fix for the action generated for the smartplaylists having backslashes in it are both now on git. Thanks again for reporting them.
removed151214
Unregistered
removed151214
Unregistered
Posts: N/A
You mean limit the users ability to delete certain links? You're not the first person to ask for it, so I'll see what can be done (though it won't be foolproof - the menus are shared between skins using the script, so a user could potentially just switch to another skin and delete it there.)
Have you considered adding these actions to the available shortcuts within the management dialog, so the user could re-add it (they go at the bottom of the Common grouping with the repo version of the script, or wherever you want in the git version being tested at the mo) - details are in the Advanved Usage.txt file, in with the overrides.xml stuff (Skin-recommended shortcuts)
Posts: 3,532
Joined: Oct 2013
Reputation:
357
2014-06-12, 20:46
(This post was last modified: 2014-06-12, 20:48 by sualfred.)
Hmmm... I think the main problem can be that single default items may get "lost", if they have special onclick actions. It's not very userfriendly to do a complete menu reset to get them back.
How about adding the default menu shortcut lists (which is stored in special://skin/shortcuts/) to the available item container? There are already categorys like addons, usual menu items, sources, programs (....). I think there is a good place for it.
edit:
Did not tried it, what happen if a user delete every single item of the main menu? Is there are fallback to the default shortcut list in the skin folder?
Main: Lancool II Mesh - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 - EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB / Crucial P1 2TB / WD Blue 3D Nand 2TB
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
removed151214
Unregistered
removed151214
Unregistered
Posts: N/A
You can do that yourself if you want it - copy the <groupings> or <flatgrouping> elements out of the overrides.xml included with the script (depending if you're using button 401 or list 211), add an extra <node/> and add <shortcut/>'s to it. The groupings are entirely customisable.
I can't see any harm in adding a new <content/> of (something like) menudefaults, though. I can't guarantee it'll be included in the groupings by default but it'll be easy enough to add if you want it.
Nope, there's no fallback if they delete everything - because there's (at least) one user mad enough to do it. They sent me a screenshot of how they've set up the kids profile - no menu items, just a widget.
Edit - OK, there's now menudefault which you can include in a content tag
removed151214
Unregistered
removed151214
Unregistered
Posts: N/A
My solution for not allowing the users to delete certain (main menu only) shortcuts is now on Git - Skin-Required Shortcuts. As normal, all the details are in the docs included with the script, but in short you could now include something like the following in the overrides:
<requiredshortcut label="My Action" icon="DefaultIcon.png">SetFocus(996)</requiredshortcut>
The user won't be able to delete or replace it (though they can still move and rename it), and it'll only be visible for your skin if the user were to switch to another using the script.
removed151214
Unregistered
removed151214
Unregistered
Posts: N/A
(2014-06-14, 10:37)sualfred Wrote: Unfledged:
The readme is wrong for the <includes> method:
PHP Code:
<onload>RunScript(script.skinshortcuts,type=buildxml&mainmenuID=9000&group=[groupname],[groupname],[groupname])</onload>
the "," has to be replaced with "|"
I meant to fix that one a long time ago
(2014-06-14, 10:37)sualfred Wrote: and
PHP Code:
<include>skinshortcuts-[groupname]</include>
has to be
PHP Code:
<include>skinshortcuts-group-[groupname]</include>
So it does. They'll both be updated on git momentarily
removed151214
Unregistered
removed151214
Unregistered
Posts: N/A
Preparing a git push at the time helps