Wählen Sie Ihre Sprache:

<we:ifVarSet>

Since version: 2.2.0.0 | Requires endtag: yes

Description

Content enclosed by this tag is only displayed if the target variable is set.

Note: There is a distinction between a variable being "not set" and being "empty".

Attributes

name

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

Set this attribute to the name of the target field to be matched.


type

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

Set this attribute to the type of variable which is used for the comparison. Valid parameters are: "global" for global variables. "request" for request variables transfered via "put" or "get". "session" for session variables. "sessionField" for variables from the customer module. "href" for values from a <we:href/> tag.

Allowed values:

  • href
  • request
  • global
  • session
  • sessionfield
  • sum
  • shopField

doc

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

Set this attribute to the target document. "top" indicates the main webEdition document even if this tag was included. "Self" means the actual document in which this tag appears. Setting it to "document" refers to a webEdition document created with <we:form type="document">. Setting it to "object" refers to an object created with <we:form type="object">.

Allowed values:

  • object
  • document
  • top

property

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

Set this attribute to the property of a webEdition document that is used for the test. Valid parameters are: DocType, Category, IsSearchable, Extension, Published, IsDynamic, ParentID, ParentPath, Text, Filename, Path, CreationDate, ModDate, Owners, OwnersReadOnly, CreatorID, ModifierID, RestrictOwners.

Allowed values:

  • true
  • false

formname

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

Set this attribute to the name of the form with which the webEdition object or document is edited.


shopname

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

If the attribute type is set to "shopField", the name of the shop has to be provided here.


Syntax

<we:ifVarSet name="attribute" [type="href|request|global|session|sessionfield|sum|shopField"] [doc="object|document|top"] [property="true|false"] [formname="attribute"] [shopname="attribute"]> ... </we:ifVarSet>