Wählen Sie Ihre Sprache:

<we:bannerSelect>

Since version: 2.3.0.0 | Requires endtag: no | Required modules: banner

Description

This tag displays a drop-down menu (<select>), which is used to select banners. If the Customer Management Module is installed and the attribute "customer" is set to true, only banners of the logged in customer will be shown.

Specific

The "customer" attribute only works if the Customer Management Module is installed.

Attributes

name

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

Name of the <select> field.


showpath

Default value: false | since version: 2.3.0.0 | required: no

Set this attribute to "true" to display the complete path to the banner. If you set it to "false" or if you do not set it at all, the system will only display the banner name.

Allowed values:

  • true
  • false

rootdir

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

Set this attribute to a pathname (for the banners) to be masked if you set showpath="true". This attribute is necessary if, for example, you only want to show specific banners.


firstentry

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

Set this attribute to the text to be diplayed as the first entry of the drop-down menu. For example, "Please select…".


submitonchange

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

If this attribute is set to true, the form which encloses the <we:bannerSelect> tag will be submitted after changing the date.

Allowed values:

  • true
  • false

customer

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

If you have installed the Customer Management Module, only banners from the logged in customer will be shown if this attribute is set to true.

Allowed values:

  • true
  • false

cachelifetime

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

With this attribute you define the validity of the Cache in seconds for this we:Tag. This attribute is used only if cache type defined in the template is we:Tag Cache or Cache is disabled.


Syntax

<we:bannerSelect name="attribute" [showpath="true|false"] [rootdir="attribute"] [firstentry="attribute"] [submitonchange="true|false"] [customer="true|false"] [cachelifetime="attribute"] />

Examples

Example #1

<we:bannerSelect customer="true" name="bannerpath" showpath="true" firstentry="Please select a banner"/>