Wählen Sie Ihre Sprache:

<we:setVar>

Since version: 2.2.0.0 | Requires endtag: no

Description

This tag is used to set the values of various types of variables.

Attributes

to

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

Set this attribute to the type of variable you want to initialize. The following values are permitted:

"request": A variable which was transfered to the document via "get" or "post" "global": A global variable "session": A PHP session variable ($_SESSION)

"top":

A field or attribute of the highest level webEdition document or object

"self": A field or attribute of the same webEdition document or object "document": A webEdition document generated with we:form="document" (see <we:form>) "object": An object generated with we:form type="object" (see <we:form>). "sessionfield":

A session variable of the cusomer management

Allowed values:

  • request
  • global
  • session
  • top
  • self
  • object
  • document
  • sessionfield

nameto

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

Set this attribute to the name of the target variable.


value

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

The value set in this attribute is written in the target variable. If this attribute is not defined, the value of the target variable is set to the value of the variable defined in "namefrom".


from

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

Set this attribute to the type of the source variable. The following values are permitted:

"request": A variable passed to the document via "get" or "post" "global": A global variable "session": A PHP session variable ($_SESSION) "top": A field or attribute of the highest level webEdition document or object "self": A field or attribute of the same webEdition document or object "document": A webEdition document generated with we:form="document" (see <we:form>) "object": An object generated with we:form type="object" (see <we:form>). "sessionfield":

A session variable of the cusomer management

Allowed values:

  • request
  • global
  • session
  • top
  • self
  • object
  • document
  • sessionfield
  • calendar
  • listview
  • block
  • listdir

namefrom

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

Set this attribute to the name of the source variable.


typefrom

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

Allowed values:

  • text
  • date
  • img
  • flashmovie
  • href
  • link
  • select
  • binary
  • float
  • int

propertyto

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

Setting this attribute to "true" causes webEdition to use an attribute of a webEdition document or object. This attribute only works if "to" was set to "top", "self", "document" or "object".

Allowed values:

  • true
  • false

propertyfrom

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

Setting this attribute to "true" causes webEdition to use an attribute of a webEdition document or object. This attribute only works if "from" was set to "top", "self", "document" or "object".

Allowed values:

  • true
  • false

formnameto

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

Set this attribute to a form name if the values "document" or "object" have been defined within the attribute "to". If no form name was defined upon the creation of the webEdition document/object, the attribute does not have to be set.


formnamefrom

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

Set this attribute to a formname if the values "document" or "object" have been defined within the attribute "from". If no formname was defined upon the creation of the webEdition document/object, the attribute does not have to be set.


Syntax

<we:setVar to="request|global|session|top|self|object|document|sessionfield" nameto="attribute" [value="attribute"] [from="request|global|session|top|self|object|document|sessionfield|calendar|listview|block|listdir"] [namefrom="attribute"] [typefrom="text|date|img|flashmovie|href|link|select|binary|float|int"] [propertyto="true|false"] [propertyfrom="true|false"] [formnameto="attribute"] [formnamefrom="attribute"] />