<we:listview type="multiobject">
Since version: - | Requires endtag: yes
Description
This tag generates an overview of all objects of a object field with the type "multiobject".
Attributes
type
Default value: - | since version: - | required: yes
Allowed values:
- multiobject
name
Default value: - | since version: 3.0.0.0 | required: no
Set this attribute to a unique name.
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.
classid
Default value: - | since version: - | required: no
Set this attribute to the ID of the class of objects that is to be used in the overview.
condition
Default value: - | since version: - | required: no
Set this attribute to a SQL-condition to limit the output. If you want to use greater-than/less-than comparisons you have to use the HTML-code (< for "<" and > for ">") instead of the the brackets (< >). Concerning date comparisons you have to pay attention of webEdition filing dates as Unix-timestamps (seconds since 01-01-1970). To perform a date comparison use the MySql function UNIX_TIMESTAMP() resp. FROM_UNIXTIME(). It is also possible to set the value of this attribute by using the <we:condition> tag or PHP.
triggerid
Default value: - | since version: - | required: no
Set this attribute to the ID of the dynamically saved webEdition document to display the object if linked by <we:field name="Feldname" hyperlink="true"/>. The display of the object depends on which directory the webEdition document was saved in.
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
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
Syntax
<we:listview type="multiobject" [name="attribute"] [categories="attribute"] [catOr="true"] [rows="attribute"] [order="random()|we_creationdate|we_filename|we_id|we_published"] [desc="true"] [offset="attribute"] [classid="attribute"] [condition="attribute"] [triggerid="attribute"] [searchable="true|false"] [cfilter="false|true|auto"]> ... </we:listview>
Beispiel #1:
<we:listview type="object" name="test" classid="4"> <we:repeat> <we:listview type="multiobject" name="test_multi" classid="4"> <we:repeat> <we:field name="Title" alt="we_path" hyperlink="on"/> <br /> </we:repeat> </we:listview> </we:repeat> </we:listview>