<?php foreach ($items as $pageObj): ?>
    <?php
        $fileName = $pageObj->page->getBaseFileName();
        $groupStatus = $this->getCollapseStatus($fileName);
        $dataId = $this->dataIdPrefix.'-'.$fileName;
        $searchMode = strlen($this->getSearchTerm()) > 0;
        $cbId = 'cb'.md5($fileName);

        $pageTitle = $pageObj->page->getViewBag()->property('title');
        $pageUrl = $pageObj->page->getViewBag()->property('url');

        if (class_exists('\RainLab\Translate\Behaviors\Transla