using cis.php and routing news

This commit is contained in:
cgfhtw
2022-12-16 11:34:39 +01:00
parent c56b774d1d
commit 085ed750ca
3 changed files with 5 additions and 1 deletions
@@ -20,6 +20,8 @@ switch ($entry->template_kurzbz) {
if ($xml->getElementsByTagName('target')->item(0))
$target = $xml->getElementsByTagName('target')->item(0)->nodeValue;
if (strpos($url, '../cms/news.php') === 0)
$url = APP_ROOT . 'cis.php/CisHtml/Cms/news' . substr($url, 15);
if (strpos($url, '../') === 0)
$url = APP_ROOT . substr($url, 3);
}
@@ -34,7 +36,7 @@ switch ($entry->template_kurzbz) {
break;
}
default: {
$this->load->view('templates/CISHTML-Menu/EntryBase', ['entry' => $entry, 'menu_id' => $menu_id, 'link' => APP_ROOT . 'index.ci.php/CisHtml/Cms/content/' . $entry->content_id]);
$this->load->view('templates/CISHTML-Menu/EntryBase', ['entry' => $entry, 'menu_id' => $menu_id, 'link' => APP_ROOT . 'cis.php/CisHtml/Cms/content/' . $entry->content_id]);
break;
}
}