There are many ways of doing that. One option would be to use getItems() method with "active=1" selector before filterItems():
Another option is even simpler – I think: Just check if the item is active inside your foreach construct, something like:
Best regards
PHP Code:
$itemClass->init($kategorie->id);
$items = $itemClass->getItems('active=1');
$items = $itemClass->filterItems('position', 'ASC', 0, 0, $items);
foreach($items as $item) {
...
Another option is even simpler – I think: Just check if the item is active inside your foreach construct, something like:
PHP Code:
foreach($itemClass->items as $item) {
if(empty($item->active)) continue;
...
Best regards