Zum Inhalt springen

anderes Template fürs iPad

Erstellt am 6. Februar 2012 · 1 Antwort · letzte Antwort am 20. Februar 2012

Tags: Frage

Php_Diver ·

grüss euch,

ich komm grad nicht drauf, wie ich ein anderes html template für das ipad lade.

ein auszug meiner setup:

...

# iPhone/iPOD
[useragent = *iPhone*] || [useragent = *iPod*]
page.stylesheet = fileadmin/templates/main/mobile.css
[global]

...

page.shortcutIcon = fileadmin/templates/gfx/body/favicon.ico
page.bodyTag = <body bgcolor="#ffffff" marginheight="-1" marginwidth="-1" topmargin="0" leftmargin="0">
page.10 = TEMPLATE

page.10{
   template = FILE
   template.file = fileadmin/templates/main/home.html
   workOnSubpart = DOKUMENT

...

für die home.html soll bei ipad und iphine die mobile.html geladen werden.

wie stekle ich das an?

danke

udowald ·

Hallo Php_Diver,

[useragent = *iPhone*] || [useragent = *iPod*]
page.stylesheet = fileadmin/templates/main/mobile.css
page.10.template.file = fileadmin/templates/main/mobile.html
[global]

das sollte gehen. Du darfst Conditions nur nicht in geschweiten Klammern verwenden.