Wählen Sie Ihre Sprache:

<we:condition>

Since version: 2.2.0.0 | Requires endtag: yes | Required modules: object

Description

This tag is used together with <we:conditionAdd> to dynamically add a condition to the attribute "condition" in a <we:listview type="object">. Conditions may be interlaced.

Attributes

name

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

Set this attribute to the name of the global variable which is passed to the "condition" attribute of <we:listview type="object">. A temporary name will be created should this not be set; in this case the attribute "condition" can be dropped from <we:listview type="object">.


Syntax

<we:condition [name="attribute"]> ... </we:condition>

Examples

Example1

<we:setVar from="request" to="global" nameFrom="type" nameTo="type"/>
<we:condition name="condition">
  <we:conditionAdd field="Type" var="type" compare="="/>
</we:condition>
<we:listview type="object" classid="3" rows="10" condition="\$condition">
  <we:repeat>
    ...
  </we:repeat>
</we:listview>

Example 2

<we:condition>
  <we:condition>
    <we:conditionAdd field="Rock_Pop" value="j" compare="="/>
      <we:conditionOr/>
    <we:conditionAdd field="Jazz" value="j" compare="="/>
  </we:condition>
    <we:conditionAnd/>
  <we:conditionAdd field="Venue" var="Venue" compare="="/>
</we:condition>