Attributwerte einer Listview mit Request-Variablen setzen



Attributwerte einer Listview können Sie mit Request-Variablen setzen.

^ Attribut ^ Request-Variable ^
| ''order'' | ''$_REQUEST['we_lv_order_LISTVIEWNAME']'' |
| ''desc'' | ''$_REQUEST['we_lv_desc_LISTVIEWNAME']'' |
| ''categories'' | ''$_REQUEST['we_lv_cats_LISTVIEWNAME']'' |
| ''categoryids'' | ''$_REQUEST['we_lv_categoryids_LISTVIEWNAME']'' |
| ''catOr'' | ''$_REQUEST['we_lv_catOr_LISTVIEWNAME']'' |
| ''contenttypes'' | ''$_REQUEST['we_lv_ct_LISTVIEWNAME']'' |
| ''workspaceID'' | ''$_REQUEST['we_lv_ws_LISTVIEWNAME']'' |
| ''searchable'' | ''$_REQUEST['we_lv_se_LISTVIEWNAME']'' |
| Position der Listview | ''$_REQUEST['we_lv_start_LISTVIEWNAME']'' |
| ''weekstart'' | ''$_REQUEST['we_lv_weekstart_LISTVIEWNAME']'' |
| ''date'' | ''$_REQUEST['we_lv_date_LISTVIEWNAME']'' |
| ''datefield'' | ''$_REQUEST['we_lv_datefield_LISTVIEWNAME']'' |
| ''calendar'' | ''$_REQUEST['we_lv_calendar_LISTVIEWNAME']'' |
| ''condition'' | ''$_REQUEST['we_lv_condition_LISTVIEWNAME']'' |

Beispiele



<box 100% round blue|Beispiel #1 - Setzen des Attributs "order" über eine Request-Variable>
<code html>
<?php $_REQUEST['we_lv_order_Overview'] = (string) 'Title'; ?>
<we:listview type="document" name="Overview">
<we:ifFound>
<ul>
<we:repeat>
<li>
<we:field name="Title" type="text"/>
</li>
</we:repeat>
</ul>
</we:ifFound>
</we:listview>
</code>
</box>
powered by webEdition CMS