Kodi Community Forum
what is the name of root level? - 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: what is the name of root level? (/showthread.php?tid=128510)



what is the name of root level? - slinuxgeek - 2012-04-11

Here in following url:
http://wiki.xbmc.org/index.php?title=XBMC_Skinning_Manual#Apendix_II:_List_of_Boolean_Conditions

In 4th row there is a method called "Container.Content(parameter)"
which
Returns true if the current container you are in contains the following: files, songs, artists, albums, movies, tvshows, seasons, episodes, musicvideos, genres, years, actors, playlists, plugins, studios, directors....

But I don't know the name of parameter , so I can not pass that to get true or false.
instead I want to know the parameter/text/name (ex: files / songs /artists / albums etc) which the current container is containing.
how it can be done?

when you click on ".." in any window which is displaying songs or artists or albums , that takes you to the immediate parent list , now again click on ".." in that list to go one list above the current list.
This way you reach at one root level which does not display ".." entry , and displays icon of artists , albums , songs etc.
what is the name of this level?

Container.Content(what to pass here)
that it will return true when you are at this top level.

Thanks for Help.


RE: what is the name of root level? - phil65 - 2012-04-11

simply container.content() , without anything in brackets.


RE: what is the name of root level? - slinuxgeek - 2012-04-11

Hi, phil65 Thanks for reply, but that is not working.

Container.FolderName seems to be helpful but it's name does not sound much reliable.
also for root level it does not return anything or may be empty string.





RE: what is the name of root level? - `Black - 2012-04-11

IsEmpty(Container.FolderPath) indicates if you're on root level or not.


RE: what is the name of root level? - slinuxgeek - 2012-04-11

Thanks `Black !!


RE: what is the name of root level? - phil65 - 2012-04-11

? I´m using Container.Content() and it works perfectly.


RE: what is the name of root level? - slinuxgeek - 2012-04-11

oh , I think I should try it again !!