Browser rules

By managing browser rules, Intrexx can control which layout should be provided for which client.

Every client that accesses a web application will be designated with a user agent. Upon accessing the server, the client sends an identifier, the so-called user agent string, to the server. The client can be identified with this recognition code.

Example

If a user calls up the Intrexx portal with their iPhone, the browser of the iPhone will transmit a user agent string to the server, such as

Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16

Administer browser rules

You can access the browser rules management in the "Design" module via the main menu "File / Manage browser rules"

"User agent description" column

The name of the respective user agent is shown here.

"User agent rule" column

The rule is shown here which has been defined for the user agent in the layout properties.

"Layout" column

The layout assigned to the user agent in the layout properties is shown here.

View details

Opens a dialog which contains additional information such as the GUID of the user agent and the layout name.

Move up / Move down

Adjusts the order that the user agent rules are performed in.

Layout settings - layout output

In the Intrexx portal, the user agent string that the client sends to the server is compared sequentially with the user agent rules from the browser rules management. In the Layout properties, the user agent rules are defined via regular expressions, which represent a pattern for the possible user agent strings. If there is a match with a user agent rule, the layout linked with the rule will be shown on the browser of the iPhone.

All user agents are listed in the "Output" area.

Select user agent / Edit user agent

Opens a dialog in which a user agent can be selected or edited.

Description

Enter the name of the user agent here.

Select user agents

A submenu will appear where a user agent can be selected.

User agent (Regular expression)

Enter the regular expression for the user agent here. If you select a user agent from the submenu, the expression will be entered automatically.

Delete user agent

Removes the currently selected user agent from the list.

If changes to the user agent rules are made in the meantime, such as due to a layout having been edited locally, a message window will be shown when the layout settings are opened.