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
Development
General Development (no feature request here!)
Could you benefit from conditional import in windows?
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="pilehave" data-source="post: 501665" data-attributes="member: 71550"><p>Hi</p><p></p><p>I think I may have found an easy way to make conditional imports possible.</p><p></p><p>Say, for instance you have a xml-file you would like to import in all dialogs, but only when they are called while your are in the window mytvhome.xml (window-id 1).</p><p></p><p>With my possible solution you could do this:</p><p></p><p>[CODE]<import condition="window.isvisible(1)">yourwindow.xml</import>[/CODE]</p><p></p><p>Or are imports cached together with the actual window?</p><p></p><p>If not, I see a lot of potential in this approach. My method would allow any existing condition to be used just like on nomal controls...</p><p></p><p>Let me hear what you think.</p></blockquote><p></p>
[QUOTE="pilehave, post: 501665, member: 71550"] Hi I think I may have found an easy way to make conditional imports possible. Say, for instance you have a xml-file you would like to import in all dialogs, but only when they are called while your are in the window mytvhome.xml (window-id 1). With my possible solution you could do this: [CODE]<import condition="window.isvisible(1)">yourwindow.xml</import>[/CODE] Or are imports cached together with the actual window? If not, I see a lot of potential in this approach. My method would allow any existing condition to be used just like on nomal controls... Let me hear what you think. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Could you benefit from conditional import in windows?
Contact us
RSS
Top
Bottom