SageTV Community  

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

Notices

SageMC Custom Interface This forum is for discussing the user-created SageMC custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-07-2008, 09:36 AM
ChuckSchick ChuckSchick is offline
Sage User
 
Join Date: Sep 2007
Posts: 52
Any way for sagemc menus to be client dependent?

It looks to me that the answer to this is NO, but, hey, it never hurts to ask.

I use an edited sagemc_menu.xml interface to parse out stored movies by import directory into "Movies", "Family Movies", "Holiday Movies", etc. The ideal situation would be for certain TV's (kid's room) to only show, say, a minimal amount of options, like a single option for "Family Movies" and nothing else -- no internet video, no settings, etc.

I'm thinking that this would require that different clients (HD100's) would have to point to different sagemc_menu.xml's and I don't see that this is possible.

Any ideas? Could one use the studio editor to make a single button custom interface without a whole bunch of fuss. I'm willing to learn if it looks do-able.

TIA - Chuck
Reply With Quote
  #2  
Old 04-07-2008, 09:57 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
Why not take a look here:
Dynamic Menus Menuitemlets

And use this to add the menus you need at whichever client you want. For instance:
Quote:
Go to a named folder of video library (sagetv v6) ¶
This MenuItemLet will always go to a specific folder of the video library and names the menu item 'kids videos'

\\mediaserver\media\Video\Kids
The format of this menuitemlet depends on whether you are using Separate or Combined video library folders (see the Video Library options.

If Separate, you have to specify the full file path as showin in the Video Library. Note that all backslashes have to be doubled, and that this must match exactly the folder name shown in the video library (including upper/lowercase characters)

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE sageMenu PUBLIC "-//NIELM//DTD SAGEMENU XML 1.3//EN" "http://sageplugins.sourceforge.net/nielm_modules/dynamic_menu/sagemenu_1_3.dtd">
<sageMenu version="1.3">
<internalScreenMenuItem title="Kids Videos"
icon="STVs\dynamic_menu_icons\mm_video.png"
screen="Browser - Videos">
<evalExpression>AddStaticContext("newVideoBrowserStyle","xFolder")</evalExpression>
<evalExpression>AddGlobalContext("CurrentVideoBrowserFolder", new_java_io_File("\\\\mediaserver\\media\\Video\\Kids"))</evalExpression>
</internalScreenMenuItem>
</sageMenu>

If Combined, you only have to specify the sub-folder path, again as showin in the Video Library. Again, this must match exactly the folder name shown in the video library (including upper/lowercase characters)

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE sageMenu PUBLIC "-//NIELM//DTD SAGEMENU XML 1.3//EN" "http://sageplugins.sourceforge.net/nielm_modules/dynamic_menu/sagemenu_1_3.dtd">
<sageMenu version="1.3">
<internalScreenMenuItem title="Kids Videos"
icon="STVs\dynamic_menu_icons\mm_video.png"
screen="Browser - Videos">
<evalExpression>AddStaticContext("newVideoBrowserStyle","xFolder")</evalExpression>
<evalExpression>AddGlobalContext("CurrentVideoBrowserFolder", "Kids/")</evalExpression>
</internalScreenMenuItem>
</sageMenu>
That may work for you. Do it once and save it. Then just use it from any client you want to point it to. You could password protect the setup menus so no one can change it.

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
  #3  
Old 04-07-2008, 10:07 AM
ChuckSchick ChuckSchick is offline
Sage User
 
Join Date: Sep 2007
Posts: 52
Quote:
Originally Posted by gplasky View Post
Then just use it from any client you want to point it to.
Good stuff. Actually, I've used this technique for the SageMC menus by directly editing the sagemc_menu.xml file in a text editor. From what I'm seeing it looks like all of the clients point to the same .xml. Am I missing something here, is there a way for different clients to have different menu configs?
Reply With Quote
  #4  
Old 04-07-2008, 11:01 AM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
I think you can just make multiple copies of the menu defiition file and give them different names. Then you can load a different one for each client and edit them independantly. Be sure to hit save after any editing or you will loose your changes.

Aloha,
Mike
Reply With Quote
  #5  
Old 04-07-2008, 04:08 PM
CollinR CollinR is offline
Sage Icon
 
Join Date: Dec 2004
Location: Tulsa, OK
Posts: 1,305
You can load a unique menu file for every instance of sage if you want to. They can also be manually called in their properties file.
Reply With Quote
  #6  
Old 04-08-2008, 07:58 AM
ChuckSchick ChuckSchick is offline
Sage User
 
Join Date: Sep 2007
Posts: 52
Fantastic. Thanks to all who posted.

I guess I never paid attention to the menu.xml "save as" and "load" options in the custom menu configs.
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
MVP Boot Lessons Learned - SageTV Menus - Helius, 86001, 86019 tv4me SageTV Media Extender 7 12-02-2008 06:15 AM
SageTV Client Choppy HD - Need a Codec Expert! bond00 SageTV Software 10 10-08-2008 07:23 AM
Client stopped connecting... nettech_gt SageTV Software 5 01-25-2008 09:51 AM
New client setup issue Lucas SageTV Software 2 01-10-2008 11:31 PM
Which client license is in use? Enormous SageTV Software 3 01-14-2007 06:47 PM


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


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