Browser Rules

Intrexx uses browser rules to control which layout is delivered to which client.

Any client that accesses a web application is referred to as a user agent. Every time the server is accessed, the client sends an identifier—known as the user-agent string—to the server. This identifier can be used to identify the client.

Example

When a user accesses the Intrexx portal using their iPhone, the iPhone's browser sends a user-agent string to the server, for example:

            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
        

Manage 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

Here you will find the name of the respective user agent.

"User-Agent Rule" Column

The rule defined in the layout properties for the user agent is displayed here.

"Layout" Column

Indicates which layout the user agent is assigned to in the layout properties.

View Details

Opens a dialog box that displays additional information, such as the user agent's GUID and the layout name.

Move up / down

Changes the order in which the user-agent rules are executed.

Layout Properties - Layout Output

In the Intrexx portal, the user-agent string that the client sends to the server is compared, one by one, with the user-agent rules in the browser rules management. The user-agent rules are defined in the layout properties using regular expressions that represent a pattern for the possible user-agent strings. If a match is found with a user-agent rule, the layout associated with that rule is displayed in the iPhone's browser.

All user agents are listed here in the "Output" section.

/ Edit User-Agent

Opens a dialog box where a user agent can be selected or edited.

Description

Enter the name of the user agent here.

Select User-Agent

Displays a submenu from which a user agent can be selected.

User-Agent (Regular Expression)

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

Delete User-Agent

Removes the currently selected user agent from the list.

If changes have been made to the user agent rules in the meantime—for example, because a layout was edited locally—a notification dialog will appear when you open the layout properties.