Sie sind nicht angemeldet.

1

Montag, 22. Mai 2017, 11:53

load different xml file when width <1000px

Hi

I have created a tour with different skin.xml files depending on the viewers screen width. Therefore I want to load the index_skin.xml on screens larger that 1000px width and want to load the index_skin_mobile.xml on devices below 1000px width. It works if I define it via devices desktop or mobile. But that's not what I want, I want to make it depending on the screens width.

Quellcode

1
  <include url="%FIRSTXML%/index_skin.xml" devices="desktop"/>  <include url="%FIRSTXML%/index_skin_mobile.xml" devices="mobile"/>



Any advice? Thank you

2

Montag, 22. Mai 2017, 16:52

Quellcode

1
2
<include url="%FIRSTXML%/index_skin.xml" if="stagewidth GE 1000"/>
<include url="%FIRSTXML%/index_skin_mobile.xml" if="stagewidth LT 1000"/>