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
Position and navigation questions
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="Zoidberg77" data-source="post: 953048" data-attributes="member: 114314"><p>Hi Lehmden,</p><p>I think I figured out the conditional navigation issue:</p><p> </p><ol> <li data-xf-list-type="ol">You will have to define a boolean variable<ol> <li data-xf-list-type="ol">Option 1: in SkinSetting.xml (this is nice, as it can be set from inside MP GUI):<br /> [CODE]<?xml version="1.0" encoding="utf-8"?><br /> <profile><br /> <section name="booleansettings"><br /> <entry name="#tester">True</entry><br /> </section><br /> </profile>[/CODE]</li> <li data-xf-list-type="ol">Option 2: as <define> variable in your xml sheet; but promoted to property:[CODE]<define property="true">#tester:True</define>[/CODE]</li> </ol></li> <li data-xf-list-type="ol">Do some math in your xml sheet: [CODE]<define evaluateNow="true">#togo:#(iif(#tester, 10001, 10002))</define>[/CODE]</li> <li data-xf-list-type="ol">Use your evaluated variable in your direction command:[CODE]<onup>#togo</onup>[/CODE]</li> <li data-xf-list-type="ol">In this example it would be <onup>10001</onup> if #tester=True or <onup>10002</onup> if #tester=False</li> </ol><p>Hope this is right, it's a lot of trial and error for me <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite14" alt=":cautious:" title="Cautious :cautious:" loading="lazy" data-shortname=":cautious:" /></p></blockquote><p></p>
[QUOTE="Zoidberg77, post: 953048, member: 114314"] Hi Lehmden, I think I figured out the conditional navigation issue: [LIST=1] [*]You will have to define a boolean variable [LIST=1] [*]Option 1: in SkinSetting.xml (this is nice, as it can be set from inside MP GUI): [CODE]<?xml version="1.0" encoding="utf-8"?> <profile> <section name="booleansettings"> <entry name="#tester">True</entry> </section> </profile>[/CODE] [*]Option 2: as <define> variable in your xml sheet; but promoted to property:[CODE]<define property="true">#tester:True</define>[/CODE] [/LIST] [*]Do some math in your xml sheet: [CODE]<define evaluateNow="true">#togo:#(iif(#tester, 10001, 10002))</define>[/CODE] [*]Use your evaluated variable in your direction command:[CODE]<onup>#togo</onup>[/CODE] [*]In this example it would be <onup>10001</onup> if #tester=True or <onup>10002</onup> if #tester=False [/LIST] Hope this is right, it's a lot of trial and error for me :cautious: [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Skins
Position and navigation questions
Contact us
RSS
Top
Bottom