From 07411411e11cd447d9632394cbbdebce10a12dd0 Mon Sep 17 00:00:00 2001 From: Lucas Bartholemy Date: Tue, 23 Feb 2021 19:38:52 +0100 Subject: [PATCH] Enh: Add info regarding Admin Only pages without Stream support --- docs/CHANGELOG.md | 1 + module.json | 2 +- views/common/edit.php | 48 ++++++++++++++++++++++++++----------------- 3 files changed, 31 insertions(+), 20 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 610f56de..0cb5612d 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -4,6 +4,7 @@ Changelog 1.3.1 (February 23, 2021) ------------------------- - Fix: Stream Channel was set for AdminOnly pages +- Enh: Add info regarding "Admin Only" pages without Stream support 1.3.0 (February 22, 2021) diff --git a/module.json b/module.json index 02a845cc..bfcdd288 100644 --- a/module.json +++ b/module.json @@ -3,7 +3,7 @@ "name": "Custom Pages", "description": "Allows admins to create custom pages (html or markdown) or external links to various navigations (e.g. top navigation, account menu).", "keywords": ["pages", "custom", "iframe", "markdown", "link", "navigation", "spaces"], - "version": "1.3.0", + "version": "1.3.1", "homepage": "https://github.com/humhub/humhub-modules-custom-pages", "humhub": { "minVersion": "1.7" diff --git a/views/common/edit.php b/views/common/edit.php index 03d0cd04..229f7da9 100644 --- a/views/common/edit.php +++ b/views/common/edit.php @@ -88,6 +88,11 @@ field($page, 'visibility')->radioList($page->getVisibilitySelection()) ?> +
visibility != Page::VISIBILITY_ADMIN_ONLY): ?>style="display:none"> + Info: Pages marked as "Admin Only" are not shown in the stream!'); ?> +
+ isAllowedField('in_new_window')) : ?> hasAttribute('in_new_window')) : ?> field($page, 'in_new_window')->checkbox() ?> @@ -104,25 +109,30 @@ link(Url::toInlineEdit($page, $target->container))->right()->icon('fa-pencil') ?> - + \ No newline at end of file