available() || $ownerKey === '') { echo '
Seitenmodul-System nicht verfügbar.
'; return; } if ($_SERVER['REQUEST_METHOD'] === 'POST') { $action = trim((string) ($_POST['action'] ?? '')); try { if ($action === 'create_page_module') { $service->createPageModule($ownerKey, [ 'title' => trim((string) ($_POST['title'] ?? '')), 'slug' => trim((string) ($_POST['slug'] ?? '')), 'module_type' => trim((string) ($_POST['module_type'] ?? 'link')), 'target_url' => trim((string) ($_POST['target_url'] ?? '')), 'description' => trim((string) ($_POST['description'] ?? '')), 'visibility' => trim((string) ($_POST['visibility'] ?? 'private')), 'open_mode' => trim((string) ($_POST['open_mode'] ?? 'embed')), 'is_active' => isset($_POST['is_active']), ]); $notice = 'Seitenmodul angelegt.'; } elseif ($action === 'delete_page_module') { $service->deletePageModule((int) ($_POST['page_module_id'] ?? 0), $ownerKey); $notice = 'Seitenmodul gelöscht.'; } } catch (\Throwable $exception) { $error = $exception->getMessage(); } } $pageModules = $service->listPageModulesForOwner($ownerKey); $GLOBALS['layout_header_base_title'] = 'Nexus'; $GLOBALS['layout_header_title'] = 'Nexus'; $GLOBALS['layout_header_context'] = 'Seitenmodule'; $GLOBALS['layout_header_text'] = 'On-the-fly angelegte Link- und iFrame-Module ohne eigenen Modulordner.'; ?>

Neues Seitenmodul