Quote:
Originally Posted by
carlog 
Does anyone have a working XML file for rearranging addins in custom menus? I'm not seeing much at all in the documentation, and I've messaged Patchou but haven't heard back.
Thanks.
Since direct xml code in the forum's editor gets completely blanked out (it's trying to look for completely invalid web addresses I believe), everything below is going to start an xml line with the pipe (|) rather than the less than operator (<)
The order of elements in a custom menu is determined by their order in your xml file. Example
|Custom Title="My Menu">
|MenuItem Name="First addon">
|Image>path\to\image|/Image>
|Link>http:\\if.web.link|/Link>
|MenuItem Name="Second addon">
|Image>path\to\image|/Image>
|Program>%path%\to.exe|/Program>
|PlayingDirective>pause|/PlayingDirective>
|/Custom>
Quote:
Originally Posted by
j_the_alchemist 
So far I really like Media Center Themer.
However, I'm trying to add my entry point for media browser under the movies menu.
I've verified that media browser is "Addon1" in my system by moving it to Order=1 under the builtin section of the xml file.
Also, I was able to add the default picture library as the first item under under movies by doing "AddItem" as follows
Therefore I should be able to do the same for media browser by doing
So, my question is, for Media Browser, which is Addon1, what would "XXX" be in the code above.
I've tried XXX= media browser, mediabrowser, and Addon1, all to no avail. I've also tried where there is no "_XXX" just using Name="Addon1"
Thanks!
Jay
Hi Jay, I hope my reply spurs another response from you. I haven't gotten everything working completely, but I've never tried to do exactly what you're attempting. I've tried getting what I'm looking for from about 3 directions.
Unfortunately, I cannot see any code in your post. It's blank, just as my quote of your post indicates (Since the editor doesn't really allow us to include code you'll need to try and work around this
I think for the addition of mediabrowser your going to need to use it's entrypoint title (which should be mediabrowser) from the windows registry (where it's created under MediaCenter/Extensions/Categories/CustomStartMenu/Mediabrowser. For the xml file it should work by using the following:
|StartMenu>
|Builtin>
|Addon1 Visible="false"/> ---hides default mb strip
|Movies>
|MenuItem Name="MoviesLibrary" Visible="false"/> ---hides default movie library
|AddItem Name="Addon1_mediabrowser" Order="1"/> ---adds default mb entrypoint to Order1
|/Movies>
|/Builtin>
|/StartMenu>
Make sure you close all the nested menuitem additem commands /> but close the Movies tile with . My worry is that it sounds like you've tried all of this already, and it doesn't work. I can't attempt this until later when I'm at home, but I'll give it a try and see if it works.
Edited by Dark_Slayer - 7/2/12 at 2:21pm