News Module Getting Started Simply

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
tboned78
New Member
New Member
Posts: 3
Joined: Sat Jul 16, 2022 3:34 pm

News Module Getting Started Simply

Post by tboned78 »

Hi, Just staretd with CMSMS
Not a developer but I like the structure of this CMS makes total sense.

I am trying to do the following..

Change the Admin UI template for adding an Article

Now seems like i joined on the transtion of file based templates to Database templates, so the docs guides and previous help are little conflicting

First I tried creating override file templatesfor the admin, but that did not do anything

I see there is a FEU Sample Template which I assume id if you enable FEU for News.

The gap is how to update the Admin Template, I assume its Database Driven, but just not shure on the naming convention or how to wire it up to override the default.

Reason is this has everything I need and I can just create a Content Editor user and they can get cracking creating articles

Here is my setup:

Code: Select all

----------------------------------------------

Cms Version: 2.2.16

Installed Modules:

AdminSearch: 1.0.6
CMSContentManager: 1.1.9
CMSMSExt: 1.0.1
CmsJobManager: 0.1.3
DesignManager: 1.1.9
DocumentSearch: 1.4.7
ECB2: 1.99.3
FileManager: 1.6.12
FilePicker: 1.0.5
Gallery: 2.4.3
MAMS: 1.0
MAMSDirectory: 1.0.b.2
MAMSRegistration: 1.0.1
MicroTiny: 2.2.5
ModuleManager: 2.1.8
Navigator: 1.0.9
News: 2.51.11
Search: 1.53
SmartyExt: 1.0

Config Information:

php_memory_limit:
max_upload_size: 128000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/London
permissive_smarty: false

Php Information:

phpversion: 7.4.29
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22527
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 300
register_globals: Off (False)
output_buffering: 1
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 128M
upload_max_filesize: 128M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On

Performance Information:

allow_browser_cache: On (True)
browser_cache_expiry: 60
php_opcache: On (True)
smarty_cache: Off (False)
smarty_compilecheck: On (True)
auto_clear_cache_age: On (True)
Server Information:

Server Software: Apache
Server Api: fpm-fcgi
Server Os: Linux 3.10.0-1160.66.1.el7.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 10.4.25
Server Db Grants: Could not find a suitable "GRANT ALL" permission, this does not necessarily lead to problems... But if you have problems installing/removing modules or adding and deleting items/pages this could be the cause!

Permission Information:

tmp: /home/sites/2a/8/84b58c74a8/public_html/tmp (0755)
tmp_cache: /home/sites/2a/8/84b58c74a8/public_html/tmp/cache (0755)
templates_c: /home/sites/2a/8/84b58c74a8/public_html/tmp/templates_c (0755)
modules: /home/sites/2a/8/84b58c74a8/public_html/modules (0755)
uploads: /home/sites/2a/8/84b58c74a8/public_html/uploads (0755)
File Creation Mask (umask): /home/sites/2a/8/84b58c74a8/public_html/tmp/cache (0755)
config_file: 0444
----------------------------------------------
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1646
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: News Module Getting Started Simply

Post by DIGI3 »

For module templates (such as News), the best way is to use the module_custom folder in assets. Set up a folder structure to exactly match the module, and copy the template files you want to use into there.

So create something like:
/assets/module_custom/News/templates/editarticle.tpl
where editarticle.tpl is copied from /modules/News/Templates

You likely need to clear the CMSMS cache after any changes.
Not getting the answer you need? CMSMS support options
tboned78
New Member
New Member
Posts: 3
Joined: Sat Jul 16, 2022 3:34 pm

Re: News Module Getting Started Simply

Post by tboned78 »

Hmm i did that.. and cleared cache

Wasnt 100% clear which template was for create article but if this is the way then I will double check my steps
tboned78
New Member
New Member
Posts: 3
Joined: Sat Jul 16, 2022 3:34 pm

Re: News Module Getting Started Simply

Post by tboned78 »

Been a fuzz bucket.. that will teach me to do this stuff at 6aM .. I am much mor eof a night person
My files were not in a template folder just in a News Folder
which makes total sense how the overrides work..! Thanks in advance
There is a learning curve here.. but its not steep.
Post Reply

Return to “CMSMS Core”