Kodi Community Forum
content type in mypics.xml - 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: content type in mypics.xml (/showthread.php?tid=191029)



content type in mypics.xml - Jeroen - 2014-04-01

When browsing through a Picture add-on, what should be the content type? Is there even a content type at all?

I'm trying to use

PHP Code:
<itemlayout condition="Container.Content(files) + Container.HasFolders" width="620" height="40"

yet it does not return true in MyPics.xml, whereas it does return true for video files.

Using this works:
PHP Code:
<itemlayout condition="SubString(Container.FolderPath,plugin://plugin.image) + Container.HasFolders" width="620" height="40"

However I would prefer not having to work around this. That is, if I'm right in saying the content type for pictures should be files...?


RE: content type in mypics.xml - BigNoid - 2014-04-01

content types are set by the addon authors, if they dont its container.content().


RE: content type in mypics.xml - Jeroen - 2014-04-02

Cheers. I got it covered now, but that affects the non-addon listings too though. Basically I think it would be good if pictures would be classified as files too


RE: content type in mypics.xml - Rantanplan-1 - 2014-04-02

Doesnt "Container.Content(pictures)" Work?

EDIT -> o.k. did see it doesnt. /EDITEND


---------

or Probably sometthing like this:
PHP Code:
Window.IsVisible(pictures) + Container().HasFiles