/** * Gets the title for this section of the cms * @return {string} */ public function Title() { $title = parent::Title(); //If we have a record and we're not on the base url add the current page's title if ($this->config()->append_current_doc_title == true && $this->getPage()) { $baseLink = Controller::join_links($this->stat('url_base', true), $this->config()->url_segment, $this->getLanguage()); if (rtrim($this->request->getURL(), '/') != $baseLink) { $pageTitle = $this->getPagePathTitle(); if (!empty($pageTitle)) { $title .= ' - ' . $this->getPagePathTitle(); } } } else { if ($this->action == 'all') { $title .= ' - ' . _t('CMSDocumentationViewer.DOC_INDEX', '_Documentation Index'); } } return $title; }