value condition using a fallback background
#1
Hi dudes,

i have a value condition see below: the fallback background doesn't show, fanart does. Is there another solution ? Or i'm simply doing something wrong?

PHP Code:
<value condition="Container.Content(Movies)" fallback="special://skin/backgrounds/moviesets.jpg">$INFO[ListItem.Art(fanart)]</value

thanx

Reply
#2
skin vars don't support fallback attribute for now - you need to emulate it by splitting that into two seperate values (not tested):
Code:
<value condition="Container.Content(Movies) + !IsEmpty(ListItem.Art(fanart))">$INFO[ListItem.Art(fanart)]</value>
<value condition="Container.Content(Movies)">special://skin/backgrounds/moviesets.jpg</value>
(we don't need additional IsEmpty check in second value as we are sure fanart will be empty as first condition wasn't true)
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

My previous forum/trac nickname: grajen3
Reply
#3
Wow that was fast Smile thanx pieh, going to try and report back.
Reply
#4
It's working, thanx!
Reply

Logout Mark Read Team Forum Stats Members Help
value condition using a fallback background0