changes how the content and the news are displayed and also modifies the modals for the roominformation which now get their data from props instead of passing them directly via refs

This commit is contained in:
SimonGschnell
2024-06-24 14:23:34 +02:00
parent 6230aa47ae
commit 629ea3716e
16 changed files with 249 additions and 89 deletions
+5 -6
View File
@@ -45,12 +45,11 @@ class Cms extends FHC_Controller
*/
public function content($content_id, $version = null, $sprache = null, $sichtbar = true)
{
$content = $this->cmslib->getContent($content_id, $version, $sprache, $sichtbar);
if (isError($content))
return $this->load->view('CisHtml/Error', ['error' => getError($content)]);
$this->load->view('CisHtml/Cms/Content', ['content' => getData($content)]);
// return early if the content_id for the content is missing
if(!isset($content_id))
$this->terminateWithError("content_id is missing");
$this->load->view('CisHtml/Cms/Content', ['content_id' => $content_id, 'version' => $version, 'sprache' => $sprache, 'sichtbar' => $sichtbar]);
}
/**