Skip to content

Editor field description for the flexibln Content

Allows the insertion of any type of markup (HTML, JavaScript) that can be placed on a page.

Title
(Text input)
The title / headline for this content.
A value has to be entered in this field.
Code
(Source code editor)
1
Use this to enter HTML-Code or JavaScript.
Page reload required
(Check box)
Optional
Check this if a page must be reloaded when this element is placed on it. Usually required for proper initialization of JavaScript.
External cookies required
(Check box)
Optional

If this option is activated, the user has to give his consent for the use of external cookies before the code of the element is displayed.

Preview (Code only activated after click)
Optional

If this option is activated, a preview is shown instead of the real content first.

The HTML code of the element is not directly loaded.

The user must click on the preview to load the real element code.

This can improve data protection for the user.

Notice
(Text input)

Will be displayed on top of the preview.

A value has to be entered in this field.
Additional notice
(Text input)
Optional

Will be displayed as additional notice at the bottom of the preview.

Preview image
(Image gallery)
Optional

Image displayed as preview for the real content.

Image format
(Select/combo box)
Optional

Allows you to set the image size based on common formats.

The image will automatically be scaled so that the original pixels are best fitted to the selected target format.

Instead of the presets, you can also manually enter any format. Use "width-height", for example "5-1" for an extreme wide format.

Icon overlay
(Select/combo box)
Optional

The selected icon is displayed as overlay above the preview.

In addition to the predefined options, any icon name from the Mercury template can be entered, e.g. 'bi-heart-fill'.

For the full list of possible icons, see the Mercury documentation website.

Background color
(Color picker)
Optional

Sets the background color of the preview.

Used only if no preview image has been set.

The colour code must be in the correct hexadecimal format, e.g. in the form ‘#CC3300’.
Gallery title
(Text input)
Only Workplace users
Optional
Used to identify this content in the OpenCms internal gallery. Not shown in the output page.