Posts: 1,332
Joined: Jan 2016
Reputation:
54
2017-02-22, 07:06
(This post was last modified: 2017-02-23, 08:15 by smitchell6879.)
So I started working on the views for the addons... and when I navigate to videos addons and it list the addons I have that view controllable as I can use <contaitner.content(addons) but once I select a addon on it defaults to a list view what would I need to change to force this view to something I prefer?
is there a set of visible conditions I can implement?
Posts: 1,332
Joined: Jan 2016
Reputation:
54
So this is annoying... I have my library views set exactly the way I want and working 98% the way I want... then I start skinning for addons and somehow the list view take priority over everything else... the normal visible tags still doesn't keep the list view from showing up... example my tv shows... I have on a icon layout it is first in the list of views it has a visibility of (TV shows) for the first layer.... now that the list view is available ever with visible tag !tvshows it still uses the list view tvshows. ?
I there a debug mode even better to tell me the window postion exactly so I can figure out the right tag to hide the list view?
sorry for the rant I am just super annoyed atm...
Posts: 7,806
Joined: Feb 2013
Reputation:
1,486
2017-02-22, 11:06
(This post was last modified: 2017-02-22, 11:06 by jurialmunkey.)
Addons set their own content type. You can see what content type they set by making a label control somewhere with
<label>$INFO[Container.Content]</label>
The other thing you can do is you can match to the folderpath
e.g. $INFO[Container.FolderPath]
for instance, video plugins start like such
plugin://plugin.video.NAMEOFPLUGIN
So you can do
String.StartsWith(Container.FolderPath,plugin://plugin.video)
String.StartsWith(Container.FolderPath,plugin://plugin.program)
String.StartsWith(Container.FolderPath,plugin://plugin.image)
String.StartsWith(Container.FolderPath,plugin://plugin.audio)
This way you can match addons of a particular type. However, ideally you should just skin for content types and its up to the addon to set an appropriate content type.
Posts: 1,332
Joined: Jan 2016
Reputation:
54
Thanks... And I will in time but for now since this is my first skin I want it to be more personal... Considering the time that has gone into it... I never would have imaged it would take this long to do so little...
Posts: 1,332
Joined: Jan 2016
Reputation:
54
Jurialmunkey thank you l... You have saved me alot of agrevation... String.contains(plugin://blah blah)
Basically what you have but it works perfectly thank you
Posts: 1,332
Joined: Jan 2016
Reputation:
54
So if I read this correctly I am fine by forcing viewtypes where I can... Which so far I have managed to force them everywhere. This way I can make a more personal feel when using my skin.
Posts: 1,332
Joined: Jan 2016
Reputation:
54
Form what I have send you are correct... I have not tried you to yet as the last time I had reached my quta error... But other addons I have tried start with add-on as content them as u dig deeper it changes to the movies view or TV etc... That was my issue before was because I didn't have the views content type correct I was getting list for everything and I didn't want that.