<we:listview type="document">
Since version: - | Requires endtag: yes
Description
Attributes
type
Default value: - | since version: - | required: yes
Allowed values:
- document
name
Default value: - | since version: 3.0.0.0 | required: no
Set this attribute to a unique name.
doctype
Default value: - | since version: - | required: no
Set this attribute to the document type of the webEdition documents of which an overview is to be displayed. There can only be one specified document type.
categories
Default value: - | since version: - | required: no
Set this attribute to a comma separated list of the categories of webEdition documents or objects from which to generate the overview. Please note that from version 2.0 on, there are multi-level categories and therefore the categories have to be entered with the full path. If, however, the categories are located in the highest level directory, the category name will suffice.
catOr
Default value: - | since version: - | required: no
If the value of the attribute "categories" is set to multiple categories and this attribute is set to "true", a disjunction (OR-instruction) will be made. Thus, the listed webEdition documents or objects have to contain at least one of the given categories. If this attribute is set to "false" an AND-instruction will be executed and the listed webEdition documents or objects have to contain all of the given categories.
Allowed values:
- true
rows
Default value: - | since version: - | required: no
Set this attribute to define the maximum number of displayed entries. The "back" and "forward" buttons can be created with <we:back> and <we:next> if more entries are found than can be displayed.
order
Default value: - | since version: - | required: no
Set this attribute to the name of the field from which to sort the list.
Allowed values:
- random()
- we_creationdate
- we_filename
- we_id
- we_published
- we_moddate
desc
Default value: - | since version: - | required: no
Set this attribute to "true" to reverse the order of the list. If the attribute is unset, the sorting order is kept.
Allowed values:
- true
offset
Default value: - | since version: - | required: no
Set this attribute to a number which defines the entry from which the list should start.
searchable
Default value: - | since version: 3.1.0.0 | required: no
Set this attribute to "true" to make the listview searchable.
Allowed values:
- true
- false
workspaceID
Default value: - | since version: - | required: no
Set this attribute to a comma seperated list of ID's of the directories which should be searched. Only the webEdition documents found in this directory are displayed. Only objects assigned to this directory as a work area are displayed.
cfilter
Default value: off | since version: 5.1.0.0 | required: no
This attribut decides, how the customer filters on documents/ objects are considered.
Allowed values:
- false
- true
- auto
recursive
Default value: - | since version: 5.1.0.0 | required: no
subfoldesr is only usabel in combination with workspaceID. It allows to limit the result only to direct items of the given folders (workspaceID).
Allowed values:
- true
- false
customers
Default value: - | since version: 5.1.0.0 | required: no
contenttypes
Default value: - | since version: - | required: no
Allowed values:
- text/webedition
- image/*
- text/html
- text/plain
- text/xml
- text/js
- text/css
- application/*
- application/x-shockwave-flash
- video/quicktime
id
Default value: - | since version: - | required: no
Syntax
<we:listview type="document" [name="attribute"] [doctype="attribute"] [categories="attribute"] [catOr="true"] [rows="attribute"] [order="random()|we_creationdate|we_filename|we_id|we_published"] [desc="true"] [offset="attribute"] [searchable="true|false"] [workspaceID="attribute"] [cfilter="false|true|auto"] [recursive="true|false"] [customers="attribute"] [contenttypes="text/webedition|image/*|text/html|text/plain|text/xml|text/js|text/css|application/*|application/x-shockwave-flash|video/quicktime"] [id="attribute"]> ... </we:listview>
Examples
Example #1
<we:listview type="document"> <we:ifFound> <p> Page: <we:listviewPageNr/> of <we:listviewPages/> | Entry: <we:listviewStart/> to <we:listviewEnd/> <we:ifBack> | <we:back>back</we:back></we:ifBack> <we:ifNext> | <we:next>next</we:next></we:ifNext> </p> <ul> <we:repeat> <li><we:field name="Title" alt="we_path" hyperlink="true"/></li> </we:repeat> </ul> <p> Page: <we:listviewPageNr/> of <we:listviewPages/> | Entry: <we:listviewStart/> to <we:listviewEnd/> <we:ifBack> | <we:back>back</we:back></we:ifBack> <we:ifNext> | <we:next>next</we:next></we:ifNext> </p> </we:ifFound> <we:ifNotFound> <p> Sorry, no entries could be found. </p> </we:ifNotFound> </we:listview>