SageTV Community  

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

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-26-2010, 07:00 PM
ma22xx ma22xx is offline
Sage User
 
Join Date: Feb 2007
Location: St. Louis, MO
Posts: 49
Stupid question on moving a menu item

I'm just starting out in studio(no dynamic menu plugin for v7 so I figured I'd try myself) and I am trying to simply move the Ortus Trailer link off the main menu into the videos sub menu. This seems to work fine just by picking the ortustrailer object, cut it, and paste under the videos secondary menu. I can then save my change and use the trailer link under videos. My issue is that no matter what I do, I can't seem to get the ortustrailer object to stay off the main menu. It always brings itself back after cutting or deleting. I'm sure I'm making a noob mistake. Any ideas what I'm doing wrong?
Reply With Quote
  #2  
Old 08-26-2010, 07:32 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
I don't use Ortus but what's probably happening is that that the Ortus STVI is still enabled and is still getting imported every time you start Sage, effectively undoing your changes.

So the first thing you need to do before you change anything is to decide what sort of component you're trying to add to the plugin ecosystem. Are you trying to make a new STVI that replaces the Ortus STVI? A mod that loads on top of the Ortus STVI? A whole new STV that has everything preloaded and doesn't require any STVIs? Your answer to this will determine how you do your Studio editing and how you save the results.

Let's assume that you want the second option, i.e. you want to continue to use the Ortus plugin, but you want to make a small plugin of your own that modifies its effects (as opposed to cloning the Ortus plugin and maintaining a variant copy of it yourself).

In that case you're going to start with the base STV and the Ortus plugin enabled, and disable all other plugins. You're then going to save a copy of that (using the Save A Copy As command, not the Save As command) as a snapshot of where you started.

Then do your edits, moving menu items around or whatever.

Then, instead of saving the result as an STV (remember you're not trying to make a whole new STV here, you're trying to make a small UI mod), you do a UID File Difference against the snapshot you set aside earlier. This will show you exactly what changes you made, and only those changes (and if it shows you more than that, then you did something wrong somewhere). You can then use the Generate STVI button to save just your changes (and nobody else's) in STVI form.

Then you need to package up that STVI as a UI Mod plugin, with a dependency on the Ortus plugin you're modifying. (Information on how to package plugins is found in the plugin developer's guide.) Then reload the base STV and use the plugin manager to install your UI mod.

After you've done all that, your mod will be loaded automatically on startup, after the Ortus plugin has been loaded. It's because UI mods are loaded dynamically on startup that you must go through all these steps to abstract your edits in a form that can be reapplied automatically, and register them with the plugin manager (with appropriate dependencies) so it knows when to reapply them. Just saving a snapshot of an edited STV doesn't do any of that.
__________________
-- Greg
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
Adding a menu item robind SageTV Beta Test Software 7 07-23-2010 02:01 PM
Menu item disappeared sleonard SageTV Customizations 2 02-27-2009 12:01 AM
exit menu item on main menu 49studebaker SageMC Custom Interface 1 11-14-2008 03:27 AM
Stupid Question: Is there a close menu button? avonnied SageTV Software 1 03-01-2007 10:03 PM
Moving files from one HD to another, and item is recorded again jwalloga SageTV Software 5 11-09-2004 02:16 AM


All times are GMT -6. The time now is 02:29 AM.


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