<we:ifClient>
Since version: - | Requires endtag: yes
Description
The <we:ifClient> tag ensures that everything located between the start tag and the end tag will only be displayed if the client (browser) meets the established standards. This tag only works with dynamically saved pages!
Attributes
browser
Default value: - | since version: - | required: no
Set this attribute to the browser or browsers to be addressed. Multiple browsers should be listed as a comma seperated list. Valid parameters are:
| Value | Browser |
|---|---|
ie | Microsoft Internet Explorer |
nn | Netscape Navigator |
mozilla | Mozilla Browser |
safari | Apple Safari |
opera | Opera Browser |
lynx | Lynx Browser |
konqueror | Konqueror Browser |
unknown | unknown Browser |
Allowed values:
iennmozillasafarioperalynxkonquerorunknown
version
Default value: - | since version: - | required: no
Set this attribute to the version number of the browser(s). Permitted values are:
| Value | Version |
|---|---|
eq2 | 2nd version |
eq3 | 3rd version |
eq4 | 4th version |
eq5 | 5th version |
eq6 | 6th version |
up2 | >= version 2 |
up3 | >= version 3 |
up4 | >= version 4 |
up5 | >= version 5 |
up6 | >= version 6 |
down2 | < version 2 |
down3 | < version 3 |
down4 | < version 4 |
down5 | < version 5 |
down6 | < version 6 |
Allowed values:
eq1eq2eq3eq4eq5eq6eq7eq8eq9up2up3up4up5up6up7up8up9down1down2down3down4down5down6down7down8down9
system
Default value: - | since version: - | required: no
Set this attribute to the targeted operating system. Valid parameters are:
| Value | Operation system |
|---|---|
win | Microsoft Windows |
mac | Apple Macintosh |
unix | Unix |
unknown | Unknown OS |
Allowed values:
winmacunixunknown
Syntax
<we:ifClient [browser="ie|nn|mozilla|safari|opera|lynx|konqueror|unknown"] [version="eq1|eq2|eq3|eq4|eq5|eq6|eq7|eq8|eq9|up2|up3|up4|up5|up6|up7|up8|up9|down1|down2|down3|down4|down5|down6|down7|down8|down9"] [system="win|mac|unix|unknown"]> ... </we:ifClient>
Examples
Example #1
<we:ifClient browser="mozilla"> You are browsing with Mozilla. <we:else> <we:ifClient browser="appleWebKit"> You are browsing with Apple Safari. </we:ifClient> <we:ifClient>