/** * Returns the ID of the home page for this SAF instance * @return int */ protected function _getPageId() { $nodes = new Pagstructure(); if (isset($this->getRequest()->slug)) { return $nodes->getIdBySlug($this->getRequest()->slug, $this->safinstancesId); } else { return $nodes->getHomeId($this->safinstancesId); } }