Kodi Community Forum

Full Version: How to enable different views for addons?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I would like to enable different views for my addon.

For example, the icefilms plugin has "Media Info", "Media Info 2" view.

I want to enable the Media Info 2 view on my addon. But how do I do thatHuh? By default it only has list, big list, thumbnails view.
newatv2user Wrote:I would like to enable different views for my addon.

For example, the icefilms plugin has "Media Info", "Media Info 2" view.

I want to enable the Media Info 2 view on my addon. But how do I do thatHuh? By default it only has list, big list, thumbnails view.

If you have read it says 'development'. You should ask in the skin thread.
This is development related.

I am developing this addon and I want to add that view into my addon.

Thanks for your input though (NOT).
I think you are working on a plug in, correct? The views are created by the skin developers and are part of their skins. To get what you want(on your own) you will need to create a GUI skin and create a script that is able to use the skin.
newatv2user Wrote:This is development related.

I am developing this addon and I want to add that view into my addon.

Thanks for your input though (NOT).
I apologise . I misread you post Blush
@Martijn: No problem.

@giftie: I am looking at the icefilms plugin to figure out how they're doing it. But I don't find any references to any skin or anything. Also, I don't see a GUI skin on the icefilms addon folder. Am I even looking at the right thing, right place? What should I be looking for?
newatv2user Wrote:@Martijn: No problem.

@giftie: I am looking at the icefilms plugin to figure out how they're doing it. But I don't find any references to any skin or anything. Also, I don't see a GUI skin on the icefilms addon folder. Am I even looking at the right thing, right place? What should I be looking for?

Well looking at the IceFilms plugin, there is a function called setView() found in the default.py file.

Hopefully that will help you out..
newatv2user Wrote:I would like to enable different views for my addon.

For example, the icefilms plugin has "Media Info", "Media Info 2" view.

I want to enable the Media Info 2 view on my addon. But how do I do thatHuh? By default it only has list, big list, thumbnails view.

add this line in your addon code:
Code:
xbmcplugin.setContent(int(sys.argv[1]), 'movies')
this will enable all the view modes available for movies in the active skin.
http://xbmc.sourceforge.net/python-docs/...setContent
Thanks guys. I will try those out today.