From 931871e4580c450055f0b4aaae4f96c5fc1dc0b1 Mon Sep 17 00:00:00 2001 From: ttpl-rt-232 Date: Mon, 23 Feb 2026 15:44:08 +0530 Subject: [PATCH] Task #253454 core : Add Configurable Notice Message to UCM List Pages --- .../com_tjucm/administrator/models/forms/type.xml | 8 ++++++++ .../administrator/en-GB/en-GB.com_tjucm.ini | 5 +++++ .../com_tjucm/site/views/items/tmpl/default.php | 13 +++++++++++++ 3 files changed, 26 insertions(+) diff --git a/src/components/com_tjucm/administrator/models/forms/type.xml b/src/components/com_tjucm/administrator/models/forms/type.xml index 499313fc..49fe0d43 100644 --- a/src/components/com_tjucm/administrator/models/forms/type.xml +++ b/src/components/com_tjucm/administrator/models/forms/type.xml @@ -42,6 +42,14 @@ + + + + + + + + diff --git a/src/components/com_tjucm/languages/administrator/en-GB/en-GB.com_tjucm.ini b/src/components/com_tjucm/languages/administrator/en-GB/en-GB.com_tjucm.ini index b95375a3..5bbfed6d 100644 --- a/src/components/com_tjucm/languages/administrator/en-GB/en-GB.com_tjucm.ini +++ b/src/components/com_tjucm/languages/administrator/en-GB/en-GB.com_tjucm.ini @@ -190,6 +190,11 @@ COM_TJUCM_PERMISSION_TYPE_ITEM_DELETEOWN_DESC="Allows users in the group to dele ;Added in version 1.2.4 COM_TJUCM_FORM_LBL_TYPE_ALLOW_BITRATE_ON="Enable timely autosave?" + +COM_TJUCM_FORM_LBL_TYPE_ALLOW_NOTE_ENABLE ="Display notice above list table" +COM_TJUCM_FORM_LBL_TYPE_ALLOW_NOTE_ENABLE_DESC="Enable to show an informational notice to users above the UCM list results." +COM_TJUCM_FORM_LBL_TYPE_ALLOW_NOTE_EDITOR="Notice content shown to users" +COM_TJUCM_FORM_LBL_TYPE_ALLOW_NOTE_EDITOR_DESC ="Enter the message that will be displayed above the UCM list table." COM_TJUCM_FORM_DESC_LBL_TYPE_ALLOW_BITRATE_ON="Set to 'YES' if you want to allow submission of item after specified interval of time. Note:If you have used editor field in your UCM type then you should enable this configuration" COM_TJUCM_FORM_LBL_TYPE_BITRATE_SECONDS="Autosave Interval (seconds)" COM_TJUCM_FORM_DESC_LBL_TYPE_BITRATE_SECONDS="Enter time in seconds to save data repeatedly for this ucm type" diff --git a/src/components/com_tjucm/site/views/items/tmpl/default.php b/src/components/com_tjucm/site/views/items/tmpl/default.php index af84944d..7208c469 100644 --- a/src/components/com_tjucm/site/views/items/tmpl/default.php +++ b/src/components/com_tjucm/site/views/items/tmpl/default.php @@ -247,6 +247,19 @@ function copySameUcmTypeItem() + + + + ucmTypeParams->note_enable) && $this->ucmTypeParams->note_enable == 1 && !empty($this->ucmTypeParams->note_editor)) + { + $noteContent = str_replace(array('

', '

'), array('', ''), $this->ucmTypeParams->note_editor); + ?> + + showList))