removed app instance hacks, content component watches route.param.content_id and reloads accordingly; changed template to <router-view/> for cms pages;

This commit is contained in:
Johann Hoffmann
2024-12-16 11:46:38 +01:00
parent 0509137ad8
commit 25dbee7266
3 changed files with 23 additions and 44 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ if(defined('CIS4')){
}
?>
<div id="cms">
<?php echo (isset($content_id) ? '<cms-content :content_id="'.$content_id.'" :version="'.$version.'" :sprache="'.$sprache.'" :sichtbar="'.$sichtbar.'" />' : '<cms-news/>'); ?>
<div ref="cmsContainer" id="cms">
<?php echo (isset($content_id) ? '<router-view ref="cms" :content_id="'.$content_id.'" :version="'.$version.'" :sprache="'.$sprache.'" :sichtbar="'.$sichtbar.'" />' : '<router-view ref="cms" />'); ?>
</div>
<?php