mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
using cis.php and routing news
This commit is contained in:
@@ -20,6 +20,8 @@ switch ($entry->template_kurzbz) {
|
|||||||
if ($xml->getElementsByTagName('target')->item(0))
|
if ($xml->getElementsByTagName('target')->item(0))
|
||||||
$target = $xml->getElementsByTagName('target')->item(0)->nodeValue;
|
$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)
|
if (strpos($url, '../') === 0)
|
||||||
$url = APP_ROOT . substr($url, 3);
|
$url = APP_ROOT . substr($url, 3);
|
||||||
}
|
}
|
||||||
@@ -34,7 +36,7 @@ switch ($entry->template_kurzbz) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -190,6 +190,7 @@ switch (ENVIRONMENT)
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
// $assign_to_config['name_of_config_item'] = 'value of config item';
|
// $assign_to_config['name_of_config_item'] = 'value of config item';
|
||||||
|
$assign_to_config['index_page'] = 'cis.php';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ export default {
|
|||||||
return '';
|
return '';
|
||||||
// TODO(chris): replace get params
|
// TODO(chris): replace get params
|
||||||
url = url.childNodes[0].nodeValue + "";
|
url = url.childNodes[0].nodeValue + "";
|
||||||
|
url = url.replace(/^\.\.\/cms\/news\.php/, FHC_JS_DATA_STORAGE_OBJECT.app_root + FHC_JS_DATA_STORAGE_OBJECT.ci_router + '/CisVue/Cms/news');
|
||||||
url = url.replace(/^\.\.\//, FHC_JS_DATA_STORAGE_OBJECT.app_root);
|
url = url.replace(/^\.\.\//, FHC_JS_DATA_STORAGE_OBJECT.app_root);
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user