Wählen Sie Ihre Sprache:

<we:ifNotVarSet>

Since version: 2.2.0.0 | Requires endtag: yes

Description

Content enclosed by this tag is only displayed if the variable named "name" is not set. Note: There is a distinction between a variable being "not set" and being "empty".

Specific

If type is set to "shopField", the shop has to be installed. The types type="sum" and type="shopField" have been added for webedition 3.5

Attributes

name

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

Set this attribute to the name of the variable to be tested.


type

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

This attribute is used to set the type of variable which is used in the comparison. Setting this attribute to "global" instructs webEdition to use a global variable in comparisons. Setting this attribute to "request" instructs webEdition to use a variable passed as a URL or in the HTTP header in comparisons. Using "sessionField" instructs webEdition to use a session variable in comparisons.

Allowed values:

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

doc

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

Comparisons refer to specific documents. Setting this attribute to "self" tells webEdition to refer to this document. If this document is included in another, webEdition refers to the included document. (see <we:include>). Setting this document to "top" causes webEdtiton to refer to the main document, that is, the document that includes the document with this tag. Setting this attribute to "document" causes webEdition to refer to the current document (the newly created or edited document). Setting it to "object" causes webEdition to refer to the newly created or edited object.

Allowed values:

  • object
  • document
  • top

property

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

Set this attribute to the property of the webEdition document which is to be used in a comparison. 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 document or object is edited.


Syntax

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