As the goal of this article is to limit control over the News articles, it seems logical to create a group of editors that don't have permission to remove articles, not? To achieve this, just make sure the article editors don't have the "Delete News Articles" permission...
- 1. Create a new folder: /module_custom/News/templates
- 2. Copy the file "editarticle.tpl" from the /modules/News/templates folder in to the folder you just created
Code: Select all
{$startform}
{capture assign='adminname'}{$smarty.session.cms_admin_username}{/capture}
{if substr_count($extravalue, $adminname)}{assign var='editor' value='1'}{/if}
{if $adminname == "$inputauthor" || $adminname == '##REPLACE_WITH_YOUR_OWN##' || $inputauthor == '' || $editor == '1'}
{if $inputauthor}
- - The logged in user is the author
- The logged in user is the admin (probably you
- - No author has been set (allows creation of new articles)
-
- - ps: As a consequence, if you remove a user login from the CMSMS installation, his or her articles become editable by everyone else...
- - The logged in user is an "additional editor" (entered manually by the original Author)
Code: Select all
{else}<b style="color:red;">This article has been created by an other user ({$inputauthor}).<br>Cet article a été créé par un autre utilisateur ({$inputauthor}).<br>Dit artikel werd aangemaakt door een andere gebruiker ({$inputauthor}).</b>{/if}{$endform}
To avoid users (easily) publishing and unpublishing each others articles, you can remove these buttons from the article list view.
Authors and "additional authors" will still have the possibility to publish/unpublish while editing the articles.
- 1. Copy the file "articlelist.tpl" from the /modules/News/templates folder in to the /module_custom/News/templates folder
- 2. Comment out (or remove) the following lines:
- 1. <th class="pageicon">{$statustext}</th>
- 2. <td>{if isset($entry->approve_link)}{$entry->approve_link}{/if}</td>
ps2: I've also posted this article on the i-do-this blog.
ps3: A shout if you like what you see is appreciated
Greetings,
Manuel