PDA

View Full Version : Question on forcing XBMC Views


isiddiqi
2009-07-14, 11:00
When running a plugin, how can I force the plugin to always start in Icons View, or for that matter, lock it, like we can the "Sort by" option?

Help will be appreciated...

spiff
2009-07-14, 18:11
you shouldn't be doing such things. set the content type and let the skin choose the suitable view modes

isiddiqi
2009-07-14, 23:45
you shouldn't be doing such things. set the content type and let the skin choose the suitable view modes

I have to do this because the plugin i am writing does not have any text associated with the stream, only channel logos. In any other view mode it will look very bad. The site I scraped does not have any associated text and hence the icon view will be the only best view for this plugin.

jmarshall
2009-07-15, 01:09
The problem is that you don't know that the view you are wanting to force has been implemented using actual icons or something else. The skin is free to supply whatever views it likes.

As spiff says, the only thing you can do is specify a content type at this point.

Cheers,
Jonathan

isiddiqi
2009-07-15, 02:31
Thanks guys for your feedback. I will experiment with content type and see which one is better for the plugin.