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
How to: combine mtvcompress pages
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="Bagal" data-source="post: 135816" data-attributes="member: 27764"><p>The string IDs wouldn't need to be centrally managed as it would very unlikely that they wouldn't be unique, the only thing you'd want to do is have a naming guide, so if I was writing a plugin I'd probably use something like the following:</p><p></p><p>mypluginname</p><ul> <li data-xf-list-type="ul">mypluginname_screen1<ul> <li data-xf-list-type="ul">mypluginname_screen1_button1</li> <li data-xf-list-type="ul">mypluginname_screen1_button2</li> </ul></li> <li data-xf-list-type="ul">mypluginname_screen2<ul> <li data-xf-list-type="ul">mypluginname_screen2_button1</li> <li data-xf-list-type="ul">mypluginname_screen2_button2</li> </ul></li> <li data-xf-list-type="ul">mypluginname_screen3<ul> <li data-xf-list-type="ul">etc.</li> </ul></li> </ul><p></p><p></p><p>That would probably be the best way of handling it, yes. You could probably implement the string ID system so that they dynamically get allocated integer IDs when MP starts up, so effectively your still using the same system. This is a simplified view, as you'd need to consider many other things such as how events are handled by the plugin when it doesn't know the integer ID etc......</p></blockquote><p></p>
[QUOTE="Bagal, post: 135816, member: 27764"] The string IDs wouldn't need to be centrally managed as it would very unlikely that they wouldn't be unique, the only thing you'd want to do is have a naming guide, so if I was writing a plugin I'd probably use something like the following: mypluginname [LIST] [*]mypluginname_screen1 [LIST] [*]mypluginname_screen1_button1 [*]mypluginname_screen1_button2 [/LIST] [*]mypluginname_screen2 [LIST] [*]mypluginname_screen2_button1 [*]mypluginname_screen2_button2 [/LIST] [*]mypluginname_screen3 [LIST] [*]etc. [/LIST] [/LIST] That would probably be the best way of handling it, yes. You could probably implement the string ID system so that they dynamically get allocated integer IDs when MP starts up, so effectively your still using the same system. This is a simplified view, as you'd need to consider many other things such as how events are handled by the plugin when it doesn't know the integer ID etc...... [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Skins
How to: combine mtvcompress pages
Contact us
RSS
Top
Bottom