rendering content pages

This commit is contained in:
SimonGschnell
2024-06-21 12:01:04 +02:00
parent f8c431e0bc
commit 7267d526bb
9 changed files with 122 additions and 17 deletions
+7 -3
View File
@@ -110,10 +110,14 @@ class CmsLib
$processor = new XSLTProcessor();
$processor->importStylesheet($xsltemplate);
$content = $processor->transformToXML($XML);
$content = str_replace('dms.php', APP_ROOT . 'cms/dms.php', $content);
$transformed_content = $processor->transformToXML($XML);
$transformed_content = str_replace('dms.php', APP_ROOT . 'cms/dms.php', $transformed_content);
return success($content);
return success([
"type"=>$content->template_kurzbz,
"content"=>$transformed_content
]);
}
/**