wir geben über eine listview type="customer" eine Liste von Mitarbeitern aus und möchten auch eine Filterfunktion anbieten.
Wir haben es mal - wie wir es sonst bei Objekten machen - wie folgt umgesetzt:
Code: Alles auswählen
<we:ifVar match="Bauleiter" name="selectfeld" type="request">
<we:condition name="filter">
<we:conditionAdd field="Profil_Position" value="Bauleiter" compare="="/>
</we:condition>
</we:ifVar>
<we:listview type="customer" order="Surname" condition="\$filter">
<we:repeat>
<we:field name="Forename"/> <we:field name="Surname"/>
</repeat>
</listview>
Code: Alles auswählen
Error message: Undefined array key "filter"
Backtrace:
#0 we_base_errorHandler::errorHandler called at [webEdition/generated/templates/templates/team/overview.php:172]
#1 include(/web/webEdition/generated/templates/templates/team/overview.php) called at [webEdition/we/include/we_showDocument.inc.php:103]
#2 require(/web/webEdition/we/include/we_showDocument.inc.php) called at [team/overview.php:4]
Source code around:
172: we_weTag_util::tag('listview',['type'=>'customer','order'=>'Surname','condition'=>$GLOBALS['filter']]);
Hat jemand einen Tipp?