Solved contextmenu addon issue with visible condition for plugins
#1
I would like to HIDE mine context menu from plugin content.
I tried:
xml:
<visible>Container.Content(tvshows)|Container.Content(movies)|Container.Content(musicvideos)|Container.Content(episodes)</visible>
and
xml:
String.IsEqual(ListItem.dbtype,tvshow) | String.IsEqual(ListItem.dbtype,season) | String.IsEqual(ListItem.dbtype,episode)
and
xml:
!Container.Content(plugins)

None of it works, because plugin setup content type the proper way.

I would like to see context menu item only in VideoLibrary or if that is not possible disable it just for plugins.

Is that possible ?
Reply
#2
this would be one way to solve it (there may be other/better ways...):
xml:
<visible>!String.StartsWith(ListItem.FolderPath, addons://) + !String.StartsWith(ListItem.FolderPath, plugin://)</visible>
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Thanks, that did the trick.
I used
xml:
!String.StartsWith(ListItem.FolderPath, plugin://)
which worked flawless for my need.
Reply

Logout Mark Read Team Forum Stats Members Help
contextmenu addon issue with visible condition for plugins0