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
Improvement Suggestions
Processing Of Skin Tags That Have Boolean Values
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="CyberSimian" data-source="post: 1206118" data-attributes="member: 141969"><p>Unfortunately it seems to be more complicated than that. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /> I tried using the expression notation "#(...)" with the VISIBLE tag, but it still did not allow the line to be split. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /> On the other hand this works with the LABEL tag:</p><p></p><p>[code]<label>#(switch(</p><p> eq(L(100600),#currentmodule),L(100600),</p><p> eq(L(100762),#currentmodule),L(100762),</p><p> eq(1,1),''))</label>[/code]</p><p></p><p></p><p>But this does not work with the COLORDIFFUSE tag:</p><p></p><p>[code]<colordiffuse>#(switch(</p><p> eq(L(100600),#currentmodule),ff004000,</p><p> eq(L(100762),#currentmodule),ff004040,</p><p> eq(1,1),ff400000))</colordiffuse>[/code]</p><p></p><p></p><p>and neither does this:</p><p></p><p>[code]<colordiffuse>#(switch(eq(L(100600),#currentmodule),ff004000,eq(L(100762),#currentmodule),ff004040,eq(1,1),ff400000))</colordiffuse>[/code]</p><p></p><p></p><p>i.e. expressions/conditionals are not valid <strong>at all</strong> on COLORDIFFUSE. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite9" alt=":eek:" title="Eek! :eek:" loading="lazy" data-shortname=":eek:" /></p><p></p><p>I don't know the history of MP's XML processor, but it looks as though these various capabilities (multiple lines; conditionals; expressions) were added <strong>one by one</strong> on <strong>specific tags</strong> as needed by the skin developers. I would have expected that when each of these capabilities was being added to the XML processor, they would have been added to <strong>every</strong> tag, and not restricted to those tags requested by the skin developers. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /> But of course I don't know how much work was involved in adding these extra capabilities.</p><p></p><p>-- from CyberSimian in the UK</p></blockquote><p></p>
[QUOTE="CyberSimian, post: 1206118, member: 141969"] Unfortunately it seems to be more complicated than that. :( I tried using the expression notation "#(...)" with the VISIBLE tag, but it still did not allow the line to be split. :( On the other hand this works with the LABEL tag: [code]<label>#(switch( eq(L(100600),#currentmodule),L(100600), eq(L(100762),#currentmodule),L(100762), eq(1,1),''))</label>[/code] But this does not work with the COLORDIFFUSE tag: [code]<colordiffuse>#(switch( eq(L(100600),#currentmodule),ff004000, eq(L(100762),#currentmodule),ff004040, eq(1,1),ff400000))</colordiffuse>[/code] and neither does this: [code]<colordiffuse>#(switch(eq(L(100600),#currentmodule),ff004000,eq(L(100762),#currentmodule),ff004040,eq(1,1),ff400000))</colordiffuse>[/code] i.e. expressions/conditionals are not valid [b]at all[/b] on COLORDIFFUSE. :eek: I don't know the history of MP's XML processor, but it looks as though these various capabilities (multiple lines; conditionals; expressions) were added [b]one by one[/b] on [b]specific tags[/b] as needed by the skin developers. I would have expected that when each of these capabilities was being added to the XML processor, they would have been added to [b]every[/b] tag, and not restricted to those tags requested by the skin developers. :( But of course I don't know how much work was involved in adding these extra capabilities. -- from CyberSimian in the UK [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
Processing Of Skin Tags That Have Boolean Values
Contact us
RSS
Top
Bottom