Kodi Community Forum
How can we make themes / views for a specific plugin? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: How can we make themes / views for a specific plugin? (/showthread.php?tid=87607)



How can we make themes / views for a specific plugin? - igotdvds - 2010-12-14

How do we make an interface for a plugin that is used whenever a certain skin is used?

I want to create a view for browsing Netflix but only accessible when browsing netflix.


- mcborzu - 2010-12-14

<visible>substring(container.folderpath,plugin://plugin.video.apple.movie.trailers.lite)</visible>

I use this to keep my AMT Lite views limited, just change the path


- Arcanthur - 2010-12-14

This is what I used for the Hulu plugin:
PHP Code:
<visible>substring(container.folderpath,plugin://plugin.video.hulu)</visible> 

Should work for Netflix too


- igotdvds - 2010-12-14

Thanks guys, never thought of it that way!

Is it possible to do a different interface for a plugin itself? Such as changing the colors of forum browser or some other plugin.


- mcborzu - 2010-12-14

Scripts have custom .xml's that we can code like RCB, Lyrics, Big Picture, etc...And plugins use whatever windows that are specified - like AMT lite uses whatever Movie views are available and Launcher uses whatever views allowed in Programs.

To get specifics labels/images for plugins you gotta use the substring trick me and Arc posted...Like I have a some specific AMT labels and I use that substring trick to show them correctly.


- bridgman - 2011-01-11

Is it possible to have only one view for all plugins in a section. As in a single view for music plugins, video plugins and so on.

Edit: I am currently using
<visible>Window.IsVisible(Plugins)</visible>
but there are some situations where it is not working.


- ronie - 2011-01-11

bridgman Wrote:Is it possible to have only one view for all plugins in a section. As in a single view for music plugins, video plugins and so on.

Edit: I am currently using
<visible>Window.IsVisible(Plugins)</visible>
but there are some situations where it is not working.

like this?

Code:
</visible>substring(Container.FolderPath,plugin://video/)</visible>
Code:
</visible>substring(Container.FolderPath,plugin://music/)</visible>



- bridgman - 2011-01-11

That is how I am doing it at the moment. Only one plugin is giving me trouble when I pull up a certain list for local radio stations.
My main thing is I only want that view for plugins only.