Wählen Sie Ihre Sprache:

All webEdition tags are case sensitive. This applies to tag names as well as to attributes and values. Attribute values always need to be enclosed by double quotes.

<we:block>

Since version: 2.0 | Requires endtag: yes

Description

Use this tag to create expandable lists (blocks). When in edit mode, any content (including we:tags) that appears between the start and end tags can be repeated by clicking on a plus button. Each entry is assigned a plus button, a trash can and two arrows. Using these buttons one can add additional entries, remove them again or move them up and down in the list.

Attributes

name

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

Set this attribute to a unique name for this tag. The name should be unique within the page.


showselect

Default value: true | since version: 3.1.0.0 | required: no

If this attribute is set to "true" or not at all, a select box will be displayed. The select box allows the user to select how many blocks should be inserted at one time. If the value is set to "false", only the "+" icon will be displayed and only one block can be added at a time.

Allowed values:

  • true
  • false

start

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

The indication of this attribute controls the number of repetitions of a block at the beginning. If the attribut isn't set, no repetitions will be showed.


limit

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

With setting this attribute you could limit the number of the repetitions for this block. If the value of this attribute is "0" or is not set at all, the number of repetitions is not limited.


Syntax

<we:block name="attribute" [showselect="true|false"] [start="attribute"] [limit="attribute"]> ... </we:block>

Examples

Example #1

<ul>
  <we:block name="MyBlock">
    <li><we:input type="text" name="MyText" size="40"/></li>
  </we:block>
<ul>