Hi,
I'm starting development on a XBMC plugin and i was wondering how to change the default view directly from my plugin code ?
I found a way to change the sort method but nothing about the view. I would like to make the Thumbnail view the default for every folder of my script.
Thanks a lot
How to change view for a folder
captainloc
Junior Member Posts: 9 Joined: Feb 2012 Reputation: 0 |
2012-02-20 18:40
Post: #1
|
| find quote |
jmarshall
Team-XBMC Developer Posts: 24,523 Joined: Oct 2003 Reputation: 138 |
2012-02-21 00:54
Post: #2
You can't. All you can do is set the content type. The view to show is then up to the skin.
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
sphere
Posting Freak Joined: Jul 2009 Reputation: 33 Location: Germany |
2012-02-21 02:09
Post: #3
jmarshall Wrote:You can't. All you can do is set the content type. The view to show is then up to the skin. I'm sorry, but you can. Sure - its not a nice way, but it is possible and some plugins (youtube for example) are using it. They are doing it with something like Code: xbmc.executebuiltin('Container.SetViewMode(500)')The videmode-ids are declared in the skins - 500 is thumbnail view in most skins. I hope there will be a cleaner way in the future *g* regards, sphere My GitHub. My Addons: HD-Trailers.net | Shoutcast 2 | Apple Itunes Podcasts | Radio | MyVideo.de | Nasa | The Big Pictures | Collegehumor | WhatTheMovie | 4Players | Wimp.com | HWClips.com | TheHollywoodReporter | XBMC Log Uploader | Rofl.to | MyZen.tv | Dump.com | Disclose.tv | Dokumonster.de | Netzkino.de |
| find quote |
jmarshall
Team-XBMC Developer Posts: 24,523 Joined: Oct 2003 Reputation: 138 |
2012-02-21 03:18
Post: #4
There won't be a cleaner way to do that, no. There will be better content setting (essentially finer grained) capabilities, so that the skin can react much better to choose the correct view mode.
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
sphere
Posting Freak Joined: Jul 2009 Reputation: 33 Location: Germany |
2012-02-21 10:57
Post: #5
Sounds promising.
That's what I wanted to say with "nicer way" ![]() regards, sphere My GitHub. My Addons: HD-Trailers.net | Shoutcast 2 | Apple Itunes Podcasts | Radio | MyVideo.de | Nasa | The Big Pictures | Collegehumor | WhatTheMovie | 4Players | Wimp.com | HWClips.com | TheHollywoodReporter | XBMC Log Uploader | Rofl.to | MyZen.tv | Dump.com | Disclose.tv | Dokumonster.de | Netzkino.de |
| find quote |
captainloc
Junior Member Posts: 9 Joined: Feb 2012 Reputation: 0 |
2012-02-21 17:53
Post: #6
Thanks a lot for your help
|
| find quote |

![[Image: badge.gif]](http://www.ohloh.net/projects/9132/badge.gif)

Search
Help