2019-04-18, 17:30
Currently we have Skin.String en skin settings from script.skin.helper.service to help us with applying and storing user settings within the skin. Furthermore when a user opens up a certain page/list or path he/she can then select the desired view to use and that view will be automatically loaded the next time a user opens that specific path.
Now what if we want to have a specific toggle, flag or setting which a user can enable or set for that specific view and even that specific path? Currently we cannot do that. It would be great if the skin engine of kodi would get this feature. We would have much more flexibility in what to show in a view as a developer, but also the users have more control in tweaking their views for a path.
For example: User has two TV Series and for both he uses the same view for the seasons pages. What if TV Series A has DVD cases for each season and TV Series B only banners? It is really hard to support multiple thumb shape sizes when you create a view. It would be nice if we could just have a path specific setting where the user can choose its desired thumb shape and it will be saved only for that specific path.
Like:
As a work around I tried to use a combined key of $INFO[Container.FolderPath] and a custom text with Skin.String(..), but unfortunately reading Skin.String with a $INFO label etc is also not supported.
Now what if we want to have a specific toggle, flag or setting which a user can enable or set for that specific view and even that specific path? Currently we cannot do that. It would be great if the skin engine of kodi would get this feature. We would have much more flexibility in what to show in a view as a developer, but also the users have more control in tweaking their views for a path.
For example: User has two TV Series and for both he uses the same view for the seasons pages. What if TV Series A has DVD cases for each season and TV Series B only banners? It is really hard to support multiple thumb shape sizes when you create a view. It would be nice if we could just have a path specific setting where the user can choose its desired thumb shape and it will be saved only for that specific path.
Like:
xml:
Skin.SetPathString('ThumbShape', 'Poster')
As a work around I tried to use a combined key of $INFO[Container.FolderPath] and a custom text with Skin.String(..), but unfortunately reading Skin.String with a $INFO label etc is also not supported.