|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#61
|
||||
|
||||
Ah! Thanks! Actually I had just tried putting it under The "Main Menu" menu that was already there and was able to import it that way. I don't know if that is kosher or not, but I will do it the way it should be and put it under the section in the template you mentioned.
|
#62
|
|||
|
|||
I noticed you can use..
df_sageutils_Import_link("LinkToMainMenuTheme", "/STV/THEME ORGANIZER/MenuThemes/MainMenuTheme") But is it also possible to have the placeholder name to be the actual name of the widget you wish for it to be replaced by. df_sageutils_Import_link("MainMenuTheme", "/STV/THEME ORGANIZER/MenuThemes/MainMenuTheme") Would that work? |
#63
|
|||
|
|||
Quote:
yes this would work. Bear in mind that the placeholder name is really just that, a placeholder which gets replaced by the actual widget name found in the STV at the specified path - you can name it anything you want. Just make sure you use the same name in the placeholder widget and in the link command. So, both of your examples will result in Dirk |
#64
|
||||
|
||||
flachbar -
I'm using your latest df_sage_utils (2.0) and I've run into two problems. 1.) the Link() function does not appear to work. It will return success, but it doesn't create the link. If I use defineLink() instead with the same parameters, it works properly. 2.) I'm using the template code, but it doesn't delete the import code (the debug log indicates it did, but it really didn't). I noticed that the code renames the imported hook before it tries to delete the import code. Here is the command it uses to delete the import code: Code:
df_sageutils_Import_deleteWidgetTree("/Imported/STVImported/\"Import code\") Code:
df_sageutils_Import_deleteWidgetTree("/Imported/" + ImportName + " import hook" + "/\"Import code\") Code:
df_sageutils_Import_deleteWidgetTree("/STV/" + ImportName + " import hook" + "/\"Import code\") |
#65
|
|||
|
|||
Hi Tiki,
I can reassure you that those functions are working, so something else must be going wrong Quote:
Code:
public static boolean defineLink(String placeHolderWidgetName, String pathOfWidgetToLink) { return link(placeHolderWidgetName, pathOfWidgetToLink); } Quote:
The hook code removal works in all my plugins, so there must be something else going on. Can you set plugins/df/debug_level=1 in the property file before doing the import, and post the log file ? Dirk |
#66
|
||||
|
||||
Quote:
The cleanup code in all the imports I've looked at is Code:
widget = df_sageutils_Import_findImportedWidget("STVImported;\"Import code\"", ";") df_sageutils_Import_deleteWidgetTree(widget) John Last edited by JREkiwi; 01-04-2007 at 02:38 PM. |
#67
|
||||
|
||||
OK Here you go
Quote:
As long as you're looking, feel free to point out anything else you see that I might be doing wrong or should be doing differently. Thanks for the help, Tom |
#68
|
||||
|
||||
Thanks for the input John,
Quote:
-Tom |
#69
|
||||
|
||||
I've tried your import and it works with this cleanup code
Code:
widget = df_sageutils_Import_findImportedWidget("STVImported;\"Import code\"", ";") df_sageutils_Import_deleteWidgetTree(widget) |
#70
|
||||
|
||||
Quote:
I tried adding the missing quote - it still doesn't work, but at least it reports an error in the debug log now: Code:
Thu 1/4 15:33:39.090 *** removing import hook code *** Thu 1/4 15:33:39.091 invalid path /Imported/STVImported/"Import code" Thu 1/4 15:33:39.091 root /Imported in path /Imported/STVImported/"Import code" not found Thu 1/4 15:33:39.091 root /Imported in path /Imported/STVImported/"Import code" not found Thu 1/4 15:33:39.091 widget path /Imported/STVImported/"Import code" not found Thu 1/4 15:33:39.091 ERROR: deleteWidgetTree(): root is null Thu 1/4 15:33:39.091 import hook code removed |
#71
|
||||
|
||||
Success!
There was another type-o in the template: Code:
df_sageutils_Import_deleteWidgetTree("/Imported/STVImported/\"Import code\") Code:
df_sageutils_Import_deleteWidgetTree("/Import/STVImported/\"Import code\"") |
#72
|
||||
|
||||
Removed as you had got it sorted. Gotta love posts at exactly the same time.
John Last edited by JREkiwi; 01-04-2007 at 03:01 PM. |
#73
|
|||
|
|||
Quote:
Dirk |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|