SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-19-2007, 12:23 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Custom Menus question.

Hi,
I have created a custom menu for family photos and movies using SageMC
16x9 and the BlueTwo skin. However all the photos and films can also be viewed with the general MY Films and My Pictures menu items which I didnt really want.

Is it possible to specify which menu item can read specific folders to keep family photos and films seperate from general media.

Had a quick look but as usual I can never find the information I want

Thanks inadvance for any help provided

jaminben
Reply With Quote
  #2  
Old 09-20-2007, 06:39 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Well its obviuosly a stupid question or an easy question where the answers right in front of my face, but I cant see it for looking.

Anyone?? Yes or No will do, just need to know if its possible.

Thanks
Reply With Quote
  #3  
Old 09-20-2007, 06:54 AM
SHS's Avatar
SHS SHS is offline
Moderator
 
Join Date: Mar 2003
Location: Vinita, Oklahoma
Posts: 4,589
Sound like your import directories are all yes, Go to setup then detailed setup under general then media center import directories click on modify
Reply With Quote
  #4  
Old 09-20-2007, 07:04 AM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by jaminben View Post
Well its obviuosly a stupid question or an easy question where the answers right in front of my face, but I cant see it for looking.

Anyone?? Yes or No will do, just need to know if its possible.

Thanks
Hi jaminben,

neither stupid nor easy, but if you had mentioned 'SageMC' in your thread title I might have spotted it earlier

Regarding your question: yes, you can create two or more menu items that filter on different music and videos directories (this functionality is not yet available for photos, but I'll check if I can get this into the next version)

In order to restrict the music or video view to one or more specific directories, you have to edit your dynamic menu definition file and add the following:

Code:
        <internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="My Personal Videos">
            <evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression>
            <evalExpression>java_util_List_add(PathFilterExprs, "\\\\server\\videos\personal")</evalExpression>
            <evalExpression>AddStaticContext("PathFilterExcludes", false)</evalExpression>
        </internalScreenMenuItem>
The above example would create a video menu that only includes videos from \\server\videos\personal.

Likewise, if you want to show all videos except those from the personal folder, set AddStaticContext("PathFilterExcludes", true)


Dirk

Reply With Quote
  #5  
Old 09-20-2007, 07:25 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Excellent,
Thankyou both for the quick replys. I shall go and have a play with this now

Reply With Quote
  #6  
Old 09-20-2007, 08:58 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
hmmm, this seems a little hard for me, are there any tutorials which I could use. Could you also point me the direction of the dynamic menu definition file.(cant find it on mine)

Regards

jaminben

The only one I can find is sagemc_menu.bak, is the correct one?

Last edited by jaminben; 09-20-2007 at 09:17 AM.
Reply With Quote
  #7  
Old 09-20-2007, 10:14 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
You're looking for sagemc_menu.xml.


Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #8  
Old 09-20-2007, 10:36 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Thanks gplasky

So the default looks like the code below,

Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE sageMenu PUBLIC "-//NIELM//DTD SAGEMENU XML 1.4//EN" "http://www.sage-community.org/~nielm/nielm_modules/dynamic_menu/sagemenu_1_3.dtd">
<sageMenu version="1.4">
    <menu title="Main">
        <internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Movies">
            <evalExpression> </evalExpression>
        </internalScreenMenuItem>
        <!--                                   -->
        <internalScreenMenuItem icon="hover_my tv.png" screen="My TV" title="Televison">
            <evalExpression> </evalExpression>
        </internalScreenMenuItem>
        <!--                                   -->
        <subMenuItem title="TV Series">
            <menu title="TV Series"/>
        </subMenuItem>
        <!--                                   -->
        <subMenuItem title="Family Archive">
            <menu title="Family Archive">
                <subMenuItem title="Camcorder">
                    <menu title="Camcorder"/>
                </subMenuItem>
                <!--                                   -->
                <subMenuItem title="Photographs">
                    <menu title="Photographs"/>
                </subMenuItem>
                <!--                                   -->
            </menu>
        </subMenuItem>
        <!--                                   -->
        <subMenuItem icon="hover_my explorer.png" title="My Menu">
            <menu title="My Menu">
                <internalScreenMenuItem screen="Google Video" title="Google Video">
                    <evalExpression> </evalExpression>
                </internalScreenMenuItem>
                <!--                                   -->
                <internalScreenMenuItem screen="YouTube Video" title="YouTube">
                    <evalExpression> </evalExpression>
                </internalScreenMenuItem>
                <!--                                   -->
                <internalScreenMenuItem screen="Rss News Feeds -- nielm" title="RSS Feeds">
                    <evalExpression> </evalExpression>
                </internalScreenMenuItem>
                <!--                                   -->
                <internalScreenMenuItem screen="Video Conversions" title="Video Conversions">
                    <evalExpression> </evalExpression>
                </internalScreenMenuItem>
                <!--                                   -->
                <internalScreenMenuItem screen="Parental Controls" title="Parental Controls">
                    <evalExpression> </evalExpression>
                </internalScreenMenuItem>
                <!--                                   -->
                <internalScreenMenuItem screen="Setup Menu" title="Settings">
                    <evalExpression> </evalExpression>
                </internalScreenMenuItem>
                <!--                                   -->
            </menu>
        </subMenuItem>
        <!--                                   -->
    </menu>
</sageMenu>
And the updated file would look like,

Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE sageMenu PUBLIC "-//NIELM//DTD SAGEMENU XML 1.4//EN" "http://www.sage-community.org/~nielm/nielm_modules/dynamic_menu/sagemenu_1_3.dtd">
<sageMenu version="1.4">
    <menu title="Main">
        <internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Movies">
            <evalExpression> </evalExpression>
        </internalScreenMenuItem>
        <!--                                   -->
        <internalScreenMenuItem icon="hover_my tv.png" screen="My TV" title="Televison">
            <evalExpression> </evalExpression>
        </internalScreenMenuItem>
        <!--                                   -->
        <subMenuItem title="TV Series">
            <menu title="TV Series"/>
        </subMenuItem>
        <!--                                   -->
        <internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Family Archive">
            <evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression>
            <evalExpression>java_util_List_add(PathFilterExprs, "\\\\jaminbenpc\\videos\camcorder")</evalExpression>
            <evalExpression>AddStaticContext("PathFilterExcludes", false)</evalExpression>
        </internalScreenMenuItem>
                </subMenuItem>
                <!--                                   -->
                <subMenuItem title="Photographs">
                    <menu title="Photographs"/>
                </subMenuItem>
                <!--                                   -->
            </menu>
        </subMenuItem>
        <!--                                   -->
        <subMenuItem icon="hover_my explorer.png" title="My Menu">
            <menu title="My Menu">
                <internalScreenMenuItem screen="Google Video" title="Google Video">
                    <evalExpression> </evalExpression>
                </internalScreenMenuItem>
                <!--                                   -->
                <internalScreenMenuItem screen="YouTube Video" title="YouTube">
                    <evalExpression> </evalExpression>
                </internalScreenMenuItem>
                <!--                                   -->
                <internalScreenMenuItem screen="Rss News Feeds -- nielm" title="RSS Feeds">
                    <evalExpression> </evalExpression>
                </internalScreenMenuItem>
                <!--                                   -->
                <internalScreenMenuItem screen="Video Conversions" title="Video Conversions">
                    <evalExpression> </evalExpression>
                </internalScreenMenuItem>
                <!--                                   -->
                <internalScreenMenuItem screen="Parental Controls" title="Parental Controls">
                    <evalExpression> </evalExpression>
                </internalScreenMenuItem>
                <!--                                   -->
                <internalScreenMenuItem screen="Setup Menu" title="Settings">
                    <evalExpression> </evalExpression>
                </internalScreenMenuItem>
                <!--                                   -->
            </menu>
        </subMenuItem>
        <!--                                   -->
    </menu>
</sageMenu>
I'm a complete noob when it comes to this so any help would be greatly appriciated.

Cheers

jaminben
Reply With Quote
  #9  
Old 09-20-2007, 11:13 AM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Looks fine, but note that the "Movies" menu will still show *all* of your videos, including those in "\videos\camcorder"... If you want to have two distinct sets of videos, you also need a filter (this time an 'exclude' filter) for the Movies menu:

Code:
<sageMenu version="1.4">
    <menu title="Main">
        <internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Movies">
            <evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression>
            <evalExpression>java_util_List_add(PathFilterExprs, "\\\\jaminbenpc\\videos\camcorder")</evalExpression>
            <evalExpression>AddStaticContext("PathFilterExcludes", true)</evalExpression>
        </internalScreenMenuItem>
        <!--                                   -->
        <internalScreenMenuItem icon="hover_my tv.png" screen="My TV" title="Televison">
            <evalExpression> </evalExpression>
        </internalScreenMenuItem>
        <!--                                   -->
        <subMenuItem title="TV Series">
            <menu title="TV Series"/>
        </subMenuItem>
        <!--                                   -->
        <internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Family Archive">
            <evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression>
            <evalExpression>java_util_List_add(PathFilterExprs, "\\\\jaminbenpc\\videos\camcorder")</evalExpression>
            <evalExpression>AddStaticContext("PathFilterExcludes", false)</evalExpression>
        </internalScreenMenuItem>

Dirk
Reply With Quote
  #10  
Old 09-20-2007, 12:20 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
You could proberly have guessed this but it doesnt work

Sage gives the error:

Failed to parse XML from c:\program files\sagetv\sagemc menu.xml
error at line 22 col 19:
The element type "menu" must be terminated by the matching end-tag "</menu>".

I've tried various combinations of code, but I'm really just guessing and its a bit like looking for a needle in a haystack.
Anyone spot the error and can fix it for me, please

Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE sageMenu PUBLIC "-//NIELM//DTD SAGEMENU XML 1.4//EN" "http://www.sage-community.org/~nielm/nielm_modules/dynamic_menu/sagemenu_1_3.dtd">
<sageMenu version="1.4">
    <menu title="Main">
        <internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Movies">
            <evalExpression> </evalExpression>
        </internalScreenMenuItem>
        <!--                                   -->
        <internalScreenMenuItem icon="hover_my tv.png" screen="My TV" title="Televison">
            <evalExpression> </evalExpression>
        </internalScreenMenuItem>
        <!--                                   -->
        <subMenuItem title="TV Series">
            <menu title="TV Series"/>
        </subMenuItem>
        <!--                                   -->
        <internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Family Archive">
            <evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression>
            <evalExpression>java_util_List_add(PathFilterExprs, "\\\\jaminbenpc\\Family Archive\Videos")</evalExpression>
            <evalExpression>AddStaticContext("PathFilterExcludes", false)</evalExpression>
        </internalScreenMenuItem>
                </subMenuItem>
                <!--                                   -->
                <subMenuItem title="Photographs">
                    <menu title="Photographs"/>
                </subMenuItem>
                <!--                                   -->
            </menu>
        </subMenuItem>
        <!--                                   -->
        <subMenuItem icon="hover_my explorer.png" title="My Menu">
            <menu title="My Menu">
                <internalScreenMenuItem screen="Google Video" title="Google Video">
                    <evalExpression> </evalExpression>
                </internalScreenMenuItem>
                <!--                                   -->
                <internalScreenMenuItem screen="YouTube Video" title="YouTube">
                    <evalExpression> </evalExpression>
                </internalScreenMenuItem>
                <!--                                   -->
                <internalScreenMenuItem screen="Rss News Feeds -- nielm" title="RSS Feeds">
                    <evalExpression> </evalExpression>
                </internalScreenMenuItem>
                <!--                                   -->
                <internalScreenMenuItem screen="Video Conversions" title="Video Conversions">
                    <evalExpression> </evalExpression>
                </internalScreenMenuItem>
                <!--                                   -->
                <internalScreenMenuItem screen="Parental Controls" title="Parental Controls">
                    <evalExpression> </evalExpression>
                </internalScreenMenuItem>
                <!--                                   -->
                <internalScreenMenuItem screen="Setup Menu" title="Settings">
                    <evalExpression> </evalExpression>
                </internalScreenMenuItem>
                <!--                                   -->
            </menu>
        </subMenuItem>
        <!--                                   -->
    </menu>
</sageMenu>
Reply With Quote
  #11  
Old 09-20-2007, 12:32 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by jaminben View Post
I've tried various combinations of code, but I'm really just guessing and its a bit like looking for a needle in a haystack.
Anyone spot the error and can fix it for me, please
Yeah, something got messed up. Try the attached menu file...


Dirk
Attached Files
File Type: zip menu.zip (770 Bytes, 370 views)
Reply With Quote
  #12  
Old 09-20-2007, 02:41 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Quote:
Originally Posted by flachbar View Post
Yeah, something got messed up. Try the attached menu file...
Yep that appears to be working, thankyou. However none of the films showup. They do however work with the normal video section so I know the shares are working (I'll move onto filtering once I have the other part working).

I'm asuming the below code line refrences where my files are stored which is -

G:\family\videos.

I also have a UNC setup within Sage which points to -

\\jaminbenpc\family\videos.

<evalExpression>java_util_List_add(PathFilterExprs, "\\\\jaminbenpc\\family\videos")</evalExpression>

Any ideas what I need to do other than this?

Cheers

jaminben

Last edited by jaminben; 09-20-2007 at 02:44 PM.
Reply With Quote
  #13  
Old 09-20-2007, 02:49 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by jaminben View Post
I'm asuming the below code line refrences where my files are stored which is -

G:\family\videos.

I also have a UNC setup within Sage which points to -

\\jaminbenpc\family\videos.
Which one of those do you use in SageTV for your import directory ? If it is the drive letter path, then you have to use this one in the filter expression. Also, check the case of all elements in the path, I think the filter comparison is case-sensitive...

Dirk
Reply With Quote
  #14  
Old 09-20-2007, 02:57 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Quote:
Originally Posted by flachbar View Post
Which one of those do you use in SageTV for your import directory ? If it is the drive letter path, then you have to use this one in the filter expression. Also, check the case of all elements in the path, I think the filter comparison is case-sensitive...
I used \\jaminben\family\videos for the SageTV import directory. I have also tried changing the file names of all the paths to lower case and removed the space from "family archive" to make it just "family". I've also redone the sharing of the folders and recreated an import directory within sagetv after renaming the directorys etc.
Reply With Quote
  #15  
Old 09-20-2007, 03:08 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by jaminben View Post
I used \\jaminben\family\videos for the SageTV import directory. I have also tried changing the file names of all the paths to lower case and removed the space from "family archive" to make it just "family". I've also redone the sharing of the folders and recreated an import directory within sagetv after renaming the directorys etc.
Which SageMC version are you using ? Check the Info in the "Settings" menu.

Dirk
Reply With Quote
  #16  
Old 09-20-2007, 03:14 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Quote:
Originally Posted by flachbar View Post
Which SageMC version are you using ? Check the Info in the "Settings" menu.
Software Version : SageTV V6.2.10.152
SageMC STV ersion : 6.3.3c
Reply With Quote
  #17  
Old 09-20-2007, 03:25 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by jaminben View Post
Software Version : SageTV V6.2.10.152
SageMC STV ersion : 6.3.3c
Should work...

Can you create a debug log and post it ?

- shut down UI
- add/edit

debug_logging=TRUE
plugins/df/debug_level=1

to your sagetv property file (Sage.properties, or SageClient.properties if you are using a client)

- restart UI
- select the filtered menu
- attach sagetv_0.txt (or sagetvclient_0.txt)


Dirk
Reply With Quote
  #18  
Old 09-20-2007, 03:37 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Ok , I've attached the log, hopefully i did it right

Thanks for helping me out like this

Maybe I didnt do it right, Attached another file
Attached Files
File Type: txt sagetv_0.txt (47.8 KB, 440 views)

Last edited by jaminben; 09-20-2007 at 03:45 PM.
Reply With Quote
  #19  
Old 09-20-2007, 03:46 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by jaminben View Post
Ok , I've attached the log, hopefully i did it right

Thanks for helping me out like this
Oops, my bad, it should be

Code:
java_util_List_add(PathFilterExprs, "\\\\jaminbenpc\\Family Archive\\Videos")
instead of

Code:
java_util_List_add(PathFilterExprs, "\\\\jaminbenpc\\Family Archive\Videos")
Dirk
Reply With Quote
  #20  
Old 09-20-2007, 04:00 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Yep, Thats got the little bleeder working

Now before we get too excited I've also added true to the exclude filter to cut out the general media from this menu. Guess what? It dont work for me...

Heres the lines from the code to which I added true -

<internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Family Archive">
<evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression>
<evalExpression>java_util_List_add(PathFilterExprs, "\\\\jaminbenpc\\family\\videos")</evalExpression>
<evalExpression>AddStaticContext("PathFilterExcludes", true)</evalExpression>

Should this not also work?

Soo close to the finish line now
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Neil's Custom Menus with SageMC? lordmeatball SageMC Custom Interface 6 11-06-2006 02:50 PM
Launching external programs w/ Nielm custom menus import feilerd SageTV Customizations 0 02-26-2006 03:58 PM
Just Another Custom Recording Quality Question dvd_maniac SageTV Software 4 01-18-2006 05:09 PM
STV Import: Malore's custom guide menus for SageTV3 (26/jul/2005) nielm SageTV Customizations 25 09-24-2005 11:00 PM
Custom Backgrounds and Menus Lady Avatar General Discussion 0 04-05-2003 02:02 PM


All times are GMT -6. The time now is 06:38 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.