Still struggling with views (code inside) - 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: Still struggling with views (code inside) (/showthread.php?tid=70703) |
Still struggling with views (code inside) - Advocate - 2010-03-24 I can't get a new view for TV Shows working in my skin, and I can't figure out why. Here is my include Code: <include name="tvserieslist"> and here is my MyVideoNav.xml Code: <window id="6"> I am entering the TV Shows page directly from the home screen with Code: <item id="2"> Can anyone help? - ekim232 - 2010-03-24 Does the view have it's own xml? If so you need to add it to includes.xml. Might be one problem. - Advocate - 2010-03-24 No I've put the view into Commonviews.xml The first view I made for my Movies is working fine I just can't figure out what's wrong. - mcborzu - 2010-03-24 Put <focusposition>0</focusposition> above <scrolltime> Not sure if <description>TV Shows Wraplist</description> where it's at screws things up but put that under <control type="wraplist" id="52"> Those were two things I quickly noticed - ekim232 - 2010-03-24 Try changing the visibilty on the wraplist to movies and see if it appears. Make sure you have a tv show library as well. - Advocate - 2010-03-24 Moved those two things and still not working.... - Advocate - 2010-03-24 ekim232 Wrote:Try changing the visibilty on the wraplist to movies and see if it appears. Make sure you have a tv show library as well. Nope doesn't work if I change it to movies, I still get my original movies view...I do have a TV Show library lol - mcborzu - 2010-03-24 Try changing: <viewtype label="tvshowlist">wraplist</viewtype> to <viewtype label="tvshowlist">list</viewtype> - Advocate - 2010-03-24 That did the trick mcborzu! Can I just ask what the word inbetween </viewtype label="tvshowlist"></viewtype> does anyway? Can it be anything? - Hitcher - 2010-03-24 Shouldn't MyVideoNav's window id should be 25? - Advocate - 2010-03-24 Yeah I think it has changed to 25 but 6 still works - jmarshall - 2010-03-25 Please don't use hardcoded window id's - use the window name instead. I don't want skins to break if we go and change stuff around! - `Black - 2010-03-25 <window id="25"></window> I don't think you can enter a name there? He used 6 instead of 25. Or is <window id="videolibrary"></window> also possible? - jmarshall - 2010-03-25 XBMC completely ignores any id="" in normal windows. What I mean is that you shouldn't reference them by id (i.e. ActivateWindow(25) is a bad idea). - Advocate - 2010-03-25 No I always open windows by calling their name ie xbmc.activatewindow(videolibrary,tvshowtitles) Is that right? |