getInput(); // Prendo dati dalla view con fallback ai getter $items = $this->items ?? ($this->get('Items') ?? []); $pagination = $this->pagination ?? ($this->get('Pagination') ?? null); // Normalizzo items if (!is_array($items)) { $items = (array) $items; } $items = array_values(array_filter($items, static fn($it) => is_object($it) && !empty($it->id))); $Itemid = (int) $input->getInt('Itemid', 0); $params = $this->params ?? Factory::getApplication()->getParams(); $title = (string) $params->get('page_title', ''); $desc = (string) $params->get('page_description', ''); ?>