TSRef - TypoScript Reference

4.1.1. browser

Syntax:

  [browser = browser1,browser2,...]

 

Values and comparison:

Browser:

Identification:

Microsoft Internet Explorer

msie

Netscape Communicator

netscape

Lynx

lynx

Opera

opera

PHP fopen

php

AvantGo (www.avantgo.com)

avantgo

Adobe Acrobat WebCapture

acrobat

IBrowse (amiga-browser)

ibrowse

Teleport Pro

teleport

?? (if "mozilla" is not in useragent)

unknown

 

Each value is compared with the ($browsername.$browserversion, eg. "netscape4.72") in a strstr().

So if the value is "netscape" or just "scape" or "net" all netscape browsers will match.

If the value is "netscape4" all netscape 4.xx browsers will match.

If any value in the list matches the current browser, the condition returns true.

Examples:

This will match with netscape and opera-browsers

      [browser = netscape, opera]

 


Valid XHTML 1.0!