Wählen Sie Ihre Sprache:

<we:var type="document">

Since version: - | Requires endtag: no

Description

This tag is used to display the content of a document field.

Attributes

type

Default value: - | since version: - | required: yes

Allowed values:

  • document

name

Default value: - | since version: - | required: yes

Set this attribute to the field name whose content is to be displayed.


doc

Default value: - | since version: - | required: no

Setting this attribute to "self" will cause webEdition to refer to the current webEdition document. If the document was included using <we:include>, it refers to the included document. Set this attribute to "top" to refer to the main current webEdition document, even if the tag is in an included document.

Allowed values:

  • self
  • top

htmlspecialchars

Default value: false | since version: - | required: no

Using htmlspecialchars="true" will change all special chars into HTML entities ("&" is transformed to "&"). If htmspecialchars is "false" or not set, all special chars remain unchanged.

Allowed values:

  • true
  • false

cachelifetime

Default value: 0 | since version: 4.2.0.0 | required: no

With this attribute you define the validity of the Cache in seconds for this we:Tag. This attribute is used only if cache type defined in the template is we:Tag Cache or Cache is disabled.


Syntax

<we:var type="document" name="attribute" [doc="self|top"] [htmlspecialchars="true|false"] [cachelifetime="attribute"] />