Wählen Sie Ihre Sprache:

<we:linklist>

Since version: - | Requires endtag: yes

Description

This tag is used to enable an editor to add any number of links to a webPage. In edit mode the editor has access to the following functions: a "+" button with which to add a new link, an "edit" button with which to edit content, and a "trash" button with which to delete the newly formed link. Two additional "arrow" buttons enable the editor to change the order in the list. Using <we:link/> you define where to place the link. Content that should not appear before the first or after the last link can be defined by using the <we:prelink> and <we:postlink> tags.

Attributes

name

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

Set this attrbute to a unique name within the webEdition template.


limit

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

Setting this attribute allows to limit the maximum number of links for this linklist. If the value of this attribute is "0" or is not set at all, the number of links is not limited.


Syntax

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

Examples

Example #1

<we:linklist name="MyLinklist">
  <we:prelink><p></we:prelink>
  <we:link><br>
  <we:postlink><br></we:postlink>
</we:linklist>

Example #2

<we:linklist name="MyLinklist">
   <we:ifSelf><strong></we:ifSelf><we:link><we:ifSelf></strong></we:ifSelf><br>
</we:linklist>

Example #3

<we:ifEditmode>
  <we:linklist name="MyLinklist">
    <we:link/><br>
  </we:linklist>
<we:else/>
  <we:linklist name="MyLinklist">
    <!-- Show path, content and target of the link -->
    Link Href: <we:path/><br>
    Link Content: <we:field/><br>
    Link Target: <we:target/><br>
  </we:linklist>
</we:ifEditmode>