From 0bdb3cdf835586fb8bfc41b0266e1030cadaaa09 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 19 Nov 2015 17:03:51 +0100 Subject: [PATCH] Added CMS page management (WIP) --- com.woltlab.wcf/acpMenu.xml | 12 + com.woltlab.wcf/userGroupOption.xml | 8 + .../install/files/acp/templates/pageAdd.tpl | 326 ++++++++++++++++++ .../install/files/acp/templates/pageList.tpl | 92 +++++ .../files/lib/acp/form/PageAddForm.class.php | 262 ++++++++++++++ .../files/lib/acp/form/PageEditForm.class.php | 171 +++++++++ .../files/lib/acp/page/PageListPage.class.php | 40 +++ .../files/lib/data/page/Page.class.php | 95 +++++ .../files/lib/data/page/PageAction.class.php | 144 ++++++++ .../files/lib/data/page/PageEditor.class.php | 20 ++ .../files/lib/data/page/PageList.class.php | 20 ++ .../files/lib/data/page/PageNode.class.php | 151 ++++++++ .../lib/data/page/PageNodeTree.class.php | 115 ++++++ wcfsetup/setup/db/install.sql | 35 ++ 14 files changed, 1491 insertions(+) create mode 100644 wcfsetup/install/files/acp/templates/pageAdd.tpl create mode 100644 wcfsetup/install/files/acp/templates/pageList.tpl create mode 100644 wcfsetup/install/files/lib/acp/form/PageAddForm.class.php create mode 100644 wcfsetup/install/files/lib/acp/form/PageEditForm.class.php create mode 100644 wcfsetup/install/files/lib/acp/page/PageListPage.class.php create mode 100644 wcfsetup/install/files/lib/data/page/Page.class.php create mode 100644 wcfsetup/install/files/lib/data/page/PageAction.class.php create mode 100644 wcfsetup/install/files/lib/data/page/PageEditor.class.php create mode 100644 wcfsetup/install/files/lib/data/page/PageList.class.php create mode 100644 wcfsetup/install/files/lib/data/page/PageNode.class.php create mode 100644 wcfsetup/install/files/lib/data/page/PageNodeTree.class.php diff --git a/com.woltlab.wcf/acpMenu.xml b/com.woltlab.wcf/acpMenu.xml index f5e2377cfb..003caf6926 100644 --- a/com.woltlab.wcf/acpMenu.xml +++ b/com.woltlab.wcf/acpMenu.xml @@ -605,5 +605,17 @@ 5 + + + + wcf.acp.menu.link.content + 1 + + + + + wcf.acp.menu.link.cms + admin.content.cms.canManagePage + diff --git a/com.woltlab.wcf/userGroupOption.xml b/com.woltlab.wcf/userGroupOption.xml index 78fb9a5952..ddd2e3e283 100644 --- a/com.woltlab.wcf/userGroupOption.xml +++ b/com.woltlab.wcf/userGroupOption.xml @@ -413,6 +413,14 @@ pdf]]> 1 1 + +