From 67f6591851fab2bdd7e3d23f7e6a2d801a1edade Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Mon, 6 Mar 2017 21:27:35 +0100 Subject: [PATCH] Better control on path alias. If user has permission to edit, provide a text input, otherwise just a label if path are required. Reviewed html generated for taxonomy field in node edit form. Improved the blog entries list by providing (if permitted) link to blog entry creation, and link to the user entries or all entries. --- modules/blog/cms_blog_node_type.e | 8 ++ modules/blog/handler/blog_handler.e | 19 ++- modules/blog/handler/blog_user_handler.e | 22 +++- modules/node/cms_node_type.e | 11 +- .../handler/cms_node_type_webform_manager.e | 118 +++++++++++------- modules/node/handler/node_form_response.e | 17 ++- modules/taxonomy/cms_taxonomy_api.e | 28 +++-- 7 files changed, 152 insertions(+), 71 deletions(-) diff --git a/modules/blog/cms_blog_node_type.e b/modules/blog/cms_blog_node_type.e index d8d713c..47ea0bb 100644 --- a/modules/blog/cms_blog_node_type.e +++ b/modules/blog/cms_blog_node_type.e @@ -8,6 +8,9 @@ class inherit CMS_NODE_TYPE [CMS_BLOG] + redefine + is_path_alias_required + end feature -- Access @@ -20,6 +23,11 @@ feature -- Access description: STRING_32 = "Content published as a blog post." -- Optional description +feature -- Setting + + is_path_alias_required: BOOLEAN = True + -- . + feature -- Factory new_node_with_title (a_title: READABLE_STRING_32; a_partial_node: detachable CMS_NODE): like new_node diff --git a/modules/blog/handler/blog_handler.e b/modules/blog/handler/blog_handler.e index 6631b18..731a58e 100644 --- a/modules/blog/handler/blog_handler.e +++ b/modules/blog/handler/blog_handler.e @@ -160,6 +160,8 @@ feature -- HTML Output -- Output the title. If more than one page, also output the current page number append_page_title_html_to (page, a_output) + append_user_related_html_to (page, a_output) + -- Get the posts from the current page (given by page number and entries per page) -- Start list of posts a_output.append ("