2010-07-15, 14:39
Following Ronie's guide on http://forum.xbmc.org/showpost.php?p=411326&postcount=7 and also on http://forum.xbmc.org/showthread.php?tid=76531, I got to making my own button for documentaries. I have successfully managed to get the button on the "vertical" view (as that is what I use, I don't like the horizontal). It appears in all it's glory for a button and also have the background image showing a picture of my choosing.
This is the code I have added to the Includes_Home.xml file in the 720p folder.
<item id="20">
<label>Documentaries</label>
<onclick>ActivateWindow(Documentaries,//****/documentaries,return)</onclick>
<icon>special://skin/images/backgrounds/rocks.jpg</icon>
</item>
My problem here is that the button doesn't do anything when clicking on it (or in my case) hitting Enter on the keyboard. I have shared a folder from my PC called "Documentaries" and thought I could put that in to the <onclick> tag but this obviously doesn't seem to work. What do I need to do so that I can add a source that points directly to my shared folder (nb: please ignore the **** in the path, I just removed the name of my PC )?
I will be creating a folder for each documentary and each will have an nfo associated so that I don't have to use a scraper.
Any help would be appreciated.
This is the code I have added to the Includes_Home.xml file in the 720p folder.
<item id="20">
<label>Documentaries</label>
<onclick>ActivateWindow(Documentaries,//****/documentaries,return)</onclick>
<icon>special://skin/images/backgrounds/rocks.jpg</icon>
</item>
My problem here is that the button doesn't do anything when clicking on it (or in my case) hitting Enter on the keyboard. I have shared a folder from my PC called "Documentaries" and thought I could put that in to the <onclick> tag but this obviously doesn't seem to work. What do I need to do so that I can add a source that points directly to my shared folder (nb: please ignore the **** in the path, I just removed the name of my PC )?
I will be creating a folder for each documentary and each will have an nfo associated so that I don't have to use a scraper.
Any help would be appreciated.