Link home.xml menu to custom video nodes
#1
Question 
Hey all,

I have made some custom video nodes:

Code:
userdata\library\video\comedy\index.xml
userdata\library\video\comedy\titles.xml
userdata\library\video\comedy\sets.xml (not working yet, doesn't accept filters)
userdata\library\video\comedy\tags.xml

Now, I want to get to my VideoLibrary > Comedy > Titles, straight from the home menu. So I added an item.

Code:
<item id="60606">
    <label>Comedy</label>
    <onclick>ActivateWindow(Videos,Comedy,return)</onclick>
    <icon>-</icon>
    <thumb>-</thumb>
    <visible>!Skin.HasSetting(HomeMenuNoMovieButton) + Library.HasContent(Movies)</visible>
</item>

This obviously doens't work. But how do I get this working?

edit: this is the code for my custom nodes
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<node order="1" type="filter">
  <label>369</label>
  <path>videodb://1/2</path>
  <icon>DefaultMovieTitle.png</icon>
  <content>movies</content>
  <match>all</match>
  <rule field="path" operator="contains">/Comedy/</rule>
</node>
Reply
#2
ActivateWindow(Videos,library://video/comedy/titles,return)
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.


Image
Reply
#3
(2013-04-10, 05:06)jmarshall Wrote: ActivateWindow(Videos,library://video/comedy/titles,return)

Not working Undecided

It just shows me an empty list screen when I click on "Comedy" on the home screen. I can do nothing, but push "back" or "home".

The weird thing is: after I go back to the home screen and enter "Videos", I get the same empty list again. But now, when I push back/up, I am in the VideoLibrary > Comedy (template overview), where I can select the display method (list, sets, tags, etc.). So the menu reference DOES do something and puts me in the right library path, but instead of showing me what I want to see, I get an empty list.

What's going on?

Could it be that home screen menus cannot link directly to filters? Like my custom node?
Code:
<node order="1" type="filter">
  <label>369</label>
  <path>videodb://1/2</path>
  <icon>DefaultMovieTitle.png</icon>
  <content>movies</content>
  <match>all</match>
  <rule field="path" operator="doesnotcontain">/Comedy/</rule>
</node>
Reply
#4
It can.

A good way to check what window to activate is to go to your custom node, make it favorite, then check it favorites.xml how it is linked. You can then use the same in the skin.
Reply
#5
An excellent suggestion.

Favorites read as:
Code:
<favourite name="Title">ActivateWindow(10025,"library://video/comedy/titles.xml/")</favourite>

It worked
Code:
<onclick>ActivateWindow(Videos,library://video/comedy/titles.xml/,return)</onclick>
Reply

Logout Mark Read Team Forum Stats Members Help
Link home.xml menu to custom video nodes0