HTML Element

This element allows you to add generic HTML anywhere in your application. In the generic HTML the following variables are available: “application” (Entity Application), “entity” (Entity HTMLElement) and “configuration”.

../../../_images/html_result_application1.png

Configuration

For example you can add an image to your application:

<img src='http://mapbender.org/sites/default/files/OSGeo_project.png' height='60px'>
../../../_images/html1.png
  • Title: Title of the element. The title will be listed in “Layouts”. It will be indicated if “Show label” is activated.
  • Content: Content of the HTML-element. The variables: “application”, “entity” und “configuration” are available in the content.
  • Classes: html-element-inline, my-special-css-class

YAML-Definition:

title: 'HTML-Element'
class: Mapbender\CoreBundle\Element\HTMLElement
content: <p>Hello, World!</p><p>Application: {{ application.title |trans }}</p> # the variables: "application", "entity" und "configuration" are available in the content.
classes: my-special-css-class

Class, Widget & Style

  • Class: Mapbender\CoreBundle\Element\HTMLElement
  • Widget: mapbender.mbHTMLElement

HTTP Callbacks

None.

Examples

Add an image

<img src='http://mapbender.org/sites/default/files/OSGeo_project.png'>

Add an Link

<a href='http://mapbender.org' target='_blank'>Go to the Mapbender Website</a>