...
Panel | ||||
---|---|---|---|---|
| ||||
External Applications support Support for external applications was removed from XperienCentral in version R29.3. |
...
- Select "<New replacement>" from the drop-down list. New fields will appear below.
Define the following fields for the replacement:
Field Description Name The name of the replacement. This is the name that appears in the list of replacements in the WMReplacementsFilter
on the "External Applications" tab.Source regular expression A Java regular expression that defines the string to search for in the source (see regular expressions or examine the default XperienCentral replacements for more information). Replacement text The text that will replace the search string found in the target. This must take the form of a Java regular expression. The replacement text can contain parameters that are replaced by XperienCentral, for example "self", "urlBase", and "wm_elementid". Result Replacement text that contains the page and property replacements. If there are no page or property replacements, the result is the same as the replacement text.
WM — Make IMG absolute Turns all relative URLs that link to an image into an absolute URL. WM — Make INPUT, type="image" absolute Turns all relative URLs that link to an images as a button into an absolute URL. WM — Make SCRIPT, src="..." absolute Inserts a Javascript snippet. WM — Transform name normalclass "Normalclass" is a standard design template. With this replacement, the external application's appearance can be transformed using a customized design template. WM — Delete HTML head Delete the HTML HEAD
from the external application, so the page's HTMLHEAD
will also be valid for the external application. This includes theHTML
tag, theDOCTYPE
tags, theLINK
tags, and all the code between<HEAD>
and</HEAD>
.- In the "Source regular expression" field, enter the regular expression that defines what the replacement transforms.
- In the "Replacement text" field, enter a regular expression that performs the replacement.
- Click [Apply]. The result of the replacement text appears next to "Result".
...
Replacement Examples
Suppose you retrieve the following HTML code from the external application:
...
<a$1@homepage@$2><img$3@logo@$4></a>