<we:listdir>
Since version: - | Requires endtag: yes
Description
This tag generates a list of all files in the current directory or the directory whose ID was set within the attribute "id". Note: The documents to be shown have to be marked as "searchable" within the document properties.
The following we:tags are usable within the start- and endtag:
<we:field/>
displays the filename or content of the specified field
<we:id/>
displays the webEdition document ID
<we:path/>
displays the document path
<we:a>Linktext</we:a>
generates a link to the document
<we:ifSelf></we:ifSelf>
only executed if referring to the same webEdition document
<we:ifNotSelf></we:ifNotSelf>
only executed if not referring to the same webEdition document
Please note that no attributes have to be set for these tags. Their functions differ from those we:tags of the same name if they are used within the two <we:linklist>-tags.
Attributes
id
Default value: - | since version: - | required: no
Set this attribute to the ID of the directory of which files are to be displayed. If the attribute is unset, the files of the current directory are displayed.
index
Default value: - | since version: - | required: no
Set this attribute to a comma seperated list of the index file(s).
field
Default value: - | since version: - | required: no
Set this attribute to the name of a field of which content is to be displayed, and which is located within the listed webEdition documents. If the field is empty or does not exist, the filename is displayed. Directories are checked for the existence of an index file defined by the attribute "index". If an index file exists, a link to it is displayed.
dirfield
Default value: - | since version: - | required: no
Set this attribute to the name of a field to be displayed for directories. If the field is empty or does not exist, the value of the attribute "field" or the filename is used.
order
Default value: - | since version: - | required: no
Set this attribute to the name of the field from which to sort the list.
desc
Default value: - | since version: - | required: no
Setting this attribute to "true" reverses the order of the list. If the attribute is unset, the sorting order is kept.
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:listdir [id="attribute"] [index="attribute"] [field="attribute"] [dirfield="attribute"] [order="attribute"] [desc="true|false"] [cachelifetime="attribute"]> ... </we:listdir>