home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Skins
Request for generic menu items between skins
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="n4orcer" data-source="post: 664050" data-attributes="member: 74094"><p>Hi,</p><p></p><p>I've been working a little bit with an application that can do two things.</p><p></p><p>1) Parse a folder (Skin folder) and build a list (WindowID - filename.xml) that you can use to select and build the below XML file trough the GUI.</p><p>2) Generate a basichome.xml from the file below or from what items you choose from the generated list of ids.</p><p></p><p>For the application to work the skin (it's basichome.xml) need to support the below file. The application should parse the generated file below and put the items/subitems in their correct spot that are defined in the basichome.xml.</p><p></p><p>Perhaps each skin also needs some kind of "layout.xml" that tells the application of how many "mainitems", "subitems" and if it supports the other items defined and so on in the basichome.xml so that it wont generate a non working basichome.xml file for a skin that does not use those items. I'm note quite sure how to do it the easiest way yet so i'm looking for ideas or help finishing it as i'm quite new to programing in C#, so if anybody feels like helping out, let me know. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>So far the application can successfully parse a MP XML file and find if it's a valid plugin/window XML or just an "include" XML file so the first step is done. Later today I'm going to finish the parsing of a folder and list generation and hopefully in a week or two the whole application can be complete for usage.</p><p></p><p>If anybody have suggestions, ideas, programing aid or want to help out fleshing these ideas out let me know. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>The Draft:</p><p>[spoiler]</p><p><?xml version="1.0" encoding="utf-8"?></p><p> <MenuSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"></p><p> <General></p><p> <UseRss>Yes</UseRss></p><p> <DefaultMenu>Movies</DefaultMenu></p><p> </General></p><p> <MenuItems></p><p> <MenuItem Text="Music"></p><p> <Caption1>Listen To</Caption1></p><p> <Caption2>Music</Caption2></p><p> <Hyperlink>30</Hyperlink></p><p> <Action>-</Action></p><p> <FanartHandler>Music</FanartHandler></p><p> <BackgroundImage>-</BackgroundImage></p><p> <BackgroundFolder>-</BackgroundFolder></p><p> </MenuItem></p><p> <MenuItem Text="Movies"></p><p> <Caption1>Watch Your</Caption1></p><p> <Caption2>Movies</Caption2></p><p> <Hyperlink>96742</Hyperlink></p><p> <Action>-</Action></p><p> <FanartHandler>Movies</FanartHandler></p><p> <BackgroundImage>-</BackgroundImage></p><p> <BackgroundFolder>-</BackgroundFolder></p><p> <SubMenuItems></p><p> <SubMenuItem Text="Movies"></p><p> <Hyperlink>96742</Hyperlink></p><p> <Action>-</Action></p><p> <FanartHandler>Movies</FanartHandler></p><p> <BackgroundImage>-</BackgroundImage></p><p> <BackgroundFolder>-</BackgroundFolder></p><p> </SubMenuItem></p><p> <SubMenuItem Text="Online Videos"></p><p> <Hyperlink>4755</Hyperlink></p><p> <Action>-</Action></p><p> <FanartHandler>Movies</FanartHandler></p><p> <BackgroundImage>-</BackgroundImage></p><p> <BackgroundFolder>-</BackgroundFolder></p><p> </SubMenuItem></p><p> </SubMenuItems></p><p> </MenuItem></p><p> </MenuItems></p><p> </MenuSettings></p><p></xml></p><p>[/spoiler]</p></blockquote><p></p>
[QUOTE="n4orcer, post: 664050, member: 74094"] Hi, I've been working a little bit with an application that can do two things. 1) Parse a folder (Skin folder) and build a list (WindowID - filename.xml) that you can use to select and build the below XML file trough the GUI. 2) Generate a basichome.xml from the file below or from what items you choose from the generated list of ids. For the application to work the skin (it's basichome.xml) need to support the below file. The application should parse the generated file below and put the items/subitems in their correct spot that are defined in the basichome.xml. Perhaps each skin also needs some kind of "layout.xml" that tells the application of how many "mainitems", "subitems" and if it supports the other items defined and so on in the basichome.xml so that it wont generate a non working basichome.xml file for a skin that does not use those items. I'm note quite sure how to do it the easiest way yet so i'm looking for ideas or help finishing it as i'm quite new to programing in C#, so if anybody feels like helping out, let me know. :) So far the application can successfully parse a MP XML file and find if it's a valid plugin/window XML or just an "include" XML file so the first step is done. Later today I'm going to finish the parsing of a folder and list generation and hopefully in a week or two the whole application can be complete for usage. If anybody have suggestions, ideas, programing aid or want to help out fleshing these ideas out let me know. :) The Draft: [spoiler] <?xml version="1.0" encoding="utf-8"?> <MenuSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <General> <UseRss>Yes</UseRss> <DefaultMenu>Movies</DefaultMenu> </General> <MenuItems> <MenuItem Text="Music"> <Caption1>Listen To</Caption1> <Caption2>Music</Caption2> <Hyperlink>30</Hyperlink> <Action>-</Action> <FanartHandler>Music</FanartHandler> <BackgroundImage>-</BackgroundImage> <BackgroundFolder>-</BackgroundFolder> </MenuItem> <MenuItem Text="Movies"> <Caption1>Watch Your</Caption1> <Caption2>Movies</Caption2> <Hyperlink>96742</Hyperlink> <Action>-</Action> <FanartHandler>Movies</FanartHandler> <BackgroundImage>-</BackgroundImage> <BackgroundFolder>-</BackgroundFolder> <SubMenuItems> <SubMenuItem Text="Movies"> <Hyperlink>96742</Hyperlink> <Action>-</Action> <FanartHandler>Movies</FanartHandler> <BackgroundImage>-</BackgroundImage> <BackgroundFolder>-</BackgroundFolder> </SubMenuItem> <SubMenuItem Text="Online Videos"> <Hyperlink>4755</Hyperlink> <Action>-</Action> <FanartHandler>Movies</FanartHandler> <BackgroundImage>-</BackgroundImage> <BackgroundFolder>-</BackgroundFolder> </SubMenuItem> </SubMenuItems> </MenuItem> </MenuItems> </MenuSettings> </xml> [/spoiler] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Skins
Request for generic menu items between skins
Contact us
RSS
Top
Bottom