|
SageMC Custom Interface This forum is for discussing the user-created SageMC custom interface for SageTV. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
Can View and List Type be set with Dynamic Menus?
Now that I've figured out how to filter videos with the dynamic menu xml I'm wondering if it's possible to set the Grouping and View settings. Something like the fake xml below.
Code:
<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, "V:\\Movies")</evalExpression> <evalExpression>AddStaticContext("PathFilterExcludes", false)</evalExpression> <evalExpression>ViewStyle("Category")</evalExpression> <evalExpression>DisplayListView("View By Folder")</evalExpression> </internalScreenMenuItem> <internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Download TV"> <evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression> <evalExpression>java_util_List_add(PathFilterExprs, "V:\\Downloads")</evalExpression> <evalExpression>AddStaticContext("PathFilterExcludes", false)</evalExpression> <evalExpression>ViewStyle("File-System")</evalExpression> <evalExpression>DisplayListView("View By List")</evalExpression> </internalScreenMenuItem> Last edited by GollyJer; 04-25-2008 at 12:19 PM. Reason: Updated to reflect the functions I found in Sage Studio. |
#2
|
||||
|
||||
OK, after taking a look inside of Studio for the first time, I think I found the methods that need to be called. The first is ViewStyle and the second is DisplayListView.
It's my understanding that these can be called using Dynamic Menu but I have no idea how to do it. For the Movies menu item I want to call: ViewStyle("Category") DisplayListView("View By Folder") and for the Downloads menu I want to call: ViewStyle("File-System") DisplayListView("View By List") Any help is greatly appreciated. Thanks. |
#3
|
||||
|
||||
I cannot help very much as I don't use SageMC, but the functions you mention do not exist. I would imagine that you would either need to set a property value or a add a static context (like a local variable) to set these values.
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki |
#4
|
|||
|
|||
Try this:
Code:
<internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="My Videos by Category"> <evalExpression>SetProperty("sagemc/ui/video_lib_view", "CATEGORY")</evalExpression> </internalScreenMenuItem> <internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="My Videos by Folder"> <evalExpression>SetProperty("sagemc/ui/video_lib_view", "FILE-SYSTEM")</evalExpression> </internalScreenMenuItem> |
#5
|
||||
|
||||
Awesome. Thanks Dirk. I didn't realize (obviously) that those settings were in the properties file.
This is awesome. My dream menu system is lining up nicely. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SageTV V6.2.6 Release Candidate is Ready! | Narflex | SageTV Beta Test Software | 3 | 08-25-2007 11:00 PM |