Ja. Erfüllt seine Aufgabe sehr gut und schließt korrekt Tablets (und natürlich auch Desktop-Browser) aus.
-----Ursprüngliche Nachricht----- Von: typo3-german-boun...@lists.typo3.org [mailto:typo3-german-boun...@lists.typo3.org] Im Auftrag von JCL - Johannes C. Laxander Gesendet: Montag, 23. Juli 2012 15:59 An: 'German TYPO3 Userlist' Betreff: Re: [TYPO3-german] Problem mit der Ext:wurfl Danke, das is doch mal was :-) Ist das was "selbstgeschriebenes"? Johannes. > -----Ursprüngliche Nachricht----- > Von: typo3-german-boun...@lists.typo3.org > [mailto:typo3-german-boun...@lists.typo3.org] Im Auftrag von Christian > Essl > Gesendet: Montag, 23. Juli 2012 15:28 > An: German TYPO3 Userlist > Betreff: Re: [TYPO3-german] Problem mit der Ext:wurfl > > function user_isMobile() { > > $user_agent = strtolower($_SERVER['HTTP_USER_AGENT']); > > if(( > preg_match('/mobile/i',$user_agent) > || preg_match('/phone/i',$user_agent) > || preg_match('/playstation portable/i',$user_agent) > || preg_match('/nintendo ds/i',$user_agent) > || preg_match('/nintendo 3ds/i',$user_agent) > || preg_match('/symbian/i',$user_agent) > || preg_match('/maemo browser/i',$user_agent) > || preg_match('/meego/i',$user_agent) > || preg_match('/lackberry/i',$user_agent) > || preg_match('/windows ce/i',$user_agent) > || preg_match('/palmos/i',$user_agent) > || preg_match('/webos/i',$user_agent) > || preg_match('/opera mini/i',$user_agent) > || preg_match('/opera mobi/i',$user_agent) > || preg_match('/fennec/i',$user_agent) > ) > && > ( > !preg_match('/ipad/i',$user_agent) > && !preg_match('/tablet/i',$user_agent) > && !preg_match('/mobile/i',$_SERVER['REQUEST_URI']) > ) > > || > > $_GET['mobile'] == 1 > ) > { > return 1; > } > else > { > return 0; > } > } > > -----Ursprüngliche Nachricht----- > Von: typo3-german-boun...@lists.typo3.org > [mailto:typo3-german-boun...@lists.typo3.org] Im Auftrag von JCL - > Johannes C. Laxander > Gesendet: Montag, 23. Juli 2012 14:25 > An: 'German TYPO3 Userlist' > Betreff: Re: [TYPO3-german] Problem mit der Ext:wurfl > > > So, ich hab' die Extension wieder deinstalliert. > > Mit der Condition > > [useragent = *Mobile*] > ... > [else] > ... > [global] > > hat es jetzt auch ohne Extension funktioniert! :-) > > Werden damit ALLE Spmartphones, auch iPhone, "erwischt"? > Und wie sieht es mit Tablets und iPad aus? Krieg ich die auch mit > dieser Condition? > > > Gruß, Johannes. > > > > > -----Ursprüngliche Nachricht----- > > Von: typo3-german-boun...@lists.typo3.org > > [mailto:typo3-german-boun...@lists.typo3.org] Im Auftrag von JCL - > > Johannes C. Laxander > > Gesendet: Sonntag, 22. Juli 2012 12:39 > > An: 'German TYPO3 Userlist' > > Betreff: [TYPO3-german] Problem mit der Ext:wurfl > > > > Hallo, > > > > hat jemand Erfahrung mit der Extension 'wurfl'? > > > > "Typo3 implementation of the \'Wireless Universal Resource File\' > > (Wurfl). It is an XML configuration file which contains information > > about capabilities and features of several wireless devices, that > > access WAP pages." > > > > Wenn ich alles richtig verstanden habe, wird die TypoScript > condition > > "[device = wap]" entsprechend erweitert und die Prüfung der divices > > erfolgt gegen die XML Liste. Deshalb steuere ich in meinem > TypoScript, > > welche CSS-Datei ich einbinde: > > > > [device = wap] > > page.includeCSS { > > file1 = fileadmin/templates/css/mobile.css > > file1.media = handheld > > } > > [else] > > page.includeCSS { > > file1 = fileadmin/templates/css/styles.css > > file1.media = screen > > } > > [global] > > > > Ich habe die Extension gerade installiert, aber im BE wird > bei Auswahl > > des Moduls eine leere Seite angezeigt! Auch wenn ich mit > meinem Nokia > > N8 auf die Seite gehe, wird weiterhin das CSS-File styles.css > > verwendet. > > > > Johannes. > > > > _______________________________________________ > > TYPO3-german mailing list > > TYPO3-german@lists.typo3.org > > http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german > > > > _______________________________________________ > TYPO3-german mailing list > TYPO3-german@lists.typo3.org > http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german > _______________________________________________ > TYPO3-german mailing list > TYPO3-german@lists.typo3.org > http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german > _______________________________________________ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german _______________________________________________ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german