Linux Add new menu item
#1
Hello,

I nearly searched 2 or 3 houres and It still doesn't work.
In sources I added a path \\diskstation\Kids where I put all those Kids movies.

Now I want a new Menu Item on the Homescreen with the name "Kids" (this part works).

But when I open the menu "Kids" it gave me a blank screen.

This is my sources.xml

Code:
<sources>
    <programs>
        <default pathversion="1"></default>
    </programs>
    <video>
        <default pathversion="1"></default>
        <source>
            <name>Films</name>
            <path pathversion="1">smb://DISKSTATION/Films/</path>
        </source>
        <source>
            <name>Series</name>
            <path pathversion="1">smb://DISKSTATION/Series/</path>
        </source>
        <source>
            <name>Kids</name>
            <path pathversion="1">smb://DISKSTATION/Kids/</path>
        </source>
    </video>
    <music>
        <default pathversion="1"></default>
    </music>
    <pictures>
        <default pathversion="1"></default>
        <source>
            <name>Fotos</name>
            <path pathversion="1">smb://DISKSTATION/Photo/</path>
        </source>
    </pictures>
    <files>
        <default pathversion="1"></default>
    </files>
</sources>


This is a part of my Home.xml

Code:
<item id="19">
<label>Kids</label>
<onclick>ActivateWindow(Videos,Kids)</onclick>
<icon>-</icon>
<thumb>-</thumb>
</item>

I already tried to work with a Smart playlist but it gave me also a blank screen. So is it possible when I click on "Kids" that it's a Shortcut to Video's --> Kids and it show me the content?
Reply
#2
Playlist to kids library content...

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
    <name>Kids</name>
    <match>all</match>
    <rule field="path" operator="contains">
        <value>smb://[path_to_folder]/</value>
    </rule>
    <order direction="ascending">sorttitle</order>
</smartplaylist>

Using Amber you can add a home menu button without the need to code.
 
  • Intel NUC Kit DN2820FYKH ~ Crucial DDR3L SO-DIMM 4GB ~ SanDisk ReadyCache 32GB SSD ~ Microsoft MCE model 1039 RC6 remote
Reply
#3
I put the above code in the xsp file of the Smart Playlist?
Reply
#4
Yes.

The items need to be in library, AFAIK file mode won't work.
 
  • Intel NUC Kit DN2820FYKH ~ Crucial DDR3L SO-DIMM 4GB ~ SanDisk ReadyCache 32GB SSD ~ Microsoft MCE model 1039 RC6 remote
Reply
#5
Allright, the smart playlist works. How do I link this Playlist to my new button "Kids" in Home.xml?

Already thanks for your reply!
Reply
#6
Found it:

Code:
<item id="19">
<label>Kids</label>
<onclick>ActivateWindow(Videos,special://profile/playlists/video/Kids.xsp,return)</onclick>
<icon>-</icon>
<thumb>-</thumb>
</item>

But now a new problem. In the Kids smart playlist there is a movie called Cinderella (\\diskstation\Kids\Cinderella). This is good, but when I go to Movies (\\diskstation\Films) there is no directory Cinderella, but XBMC shows me the movie in the overview ? !

What's now wrong?
Reply
#7
Check the path by pressing "info" on the remote (or "i" on the keyboard) with the movie selected?
 
  • Intel NUC Kit DN2820FYKH ~ Crucial DDR3L SO-DIMM 4GB ~ SanDisk ReadyCache 32GB SSD ~ Microsoft MCE model 1039 RC6 remote
Reply
#8
In the Movie menu item I see the Cinderella movie located in the \\Diskstation\Kids\Cinderella so this is correct, but the Cinderella movie has to be only in the Kids menu, not in the Movie menu.

I double checked in my path \\diskstation\Films\ that the Cinderella movie is deleted there, and this is fine. So how can ik solve this problem?
Reply
#9
This is insane :-) Almost 10 houres of searching and I still didn't found a solution for me.

I do not need (and I do not want) a second profile. I already have a new menu button on the homescreen called "Kids" and I just want to open the Kids library. Problem is that all those kids Movies also show up on the general Movie library. So from another point of view, I need 2 library's in one profile.

Is this possible or impossible? I thought to solve my problem in 5 minutes, but... :-)
Reply
#10
Add a playlist excluding the kids folder?

Two libraries in one profile is impossible afaik.
Easiest would be separated profiles but that you don't want.
 
  • Intel NUC Kit DN2820FYKH ~ Crucial DDR3L SO-DIMM 4GB ~ SanDisk ReadyCache 32GB SSD ~ Microsoft MCE model 1039 RC6 remote
Reply
#11
Finally, it works.

I Added 2 new buttons on the Homscreen ( Movies and Kids ) and linked this to the playlist Movies and playlist Kids.
Reply

Logout Mark Read Team Forum Stats Members Help
Add new menu item0