[TYPO3-core] RFC #13183: Disable certain Control Icons in the List Module via PageTS/UserTS

Sebastian Gebhard sebastian.gebhard at gmail.com
Fri Jan 8 14:26:29 CET 2010


This is an SVN patch request.

Type: Feature

Bugtracker references:
http://bugs.typo3.org/view.php?id=13183

Branches:
trunk

Problem:
For each record in the databse the List module offers a variety of functions. Depending on the 
Database Table, User Rights and other circumstances you can Edit, Move, Delete, Preview etc records.
But especially for editors with low technical skills the "wall of icons" in the extended view can be 
confusing.
Yes, you can disable the extended view, but then you might take away features the editor needs to 
perform his tasks.
Until now it's not possible to disable single Control Icons.

Solution:
Introduce some properties to mod.web_list (which is available in PageTS and UserTS).
My patch introduces the following properties:

mod.web_list.tableControls.[table].delete.disabled
mod.web_list.tableControls.[table].edit.disabled
mod.web_list.tableControls.[table].hideUnhide.disabled
mod.web_list.tableControls.[table].history.disabled
mod.web_list.tableControls.[table].info.disabled
mod.web_list.tableControls.[table].move.disabled
mod.web_list.tableControls.[table].moveLevels.disabled
mod.web_list.tableControls.[table].newRecordAfter.disabled
mod.web_list.tableControls.[table].permissions.disabled
mod.web_list.tableControls.[table].show.disabled
mod.web_list.tableControls.[table].upDown.disabled
mod.web_list.tableControls.[table].versions.disabled

Obviously all of them are boolean and "1" disables the certain icon.

Notes:
Mind that some of the Controls are only available for certain tables. Eg. "moveLevels" is only for 
pages.
Though most Icons should be uite clear I attached a screenshot in the bugtracker, showing which 
property belongs to which icon.
As a starting point for your tests you can use this snippet (PageTS or UserTS):
mod.web_list.tableControls{
   pages{
     delete.disabled = 1
     edit.disabled = 1
     hideUnhide.disabled = 1
     history.disabled = 1
     info.disabled = 1
     move.disabled = 1
     moveLevels.disabled = 1
     newRecordAfter.disabled = 1
     permissions.disabled = 1
     show.disabled = 1
     upDown.disabled = 1
     versions.disabled = 1
   }
}

Kind regards,
Sebastian Gebhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 13183_v1.diff
Type: application/pgp-keys
Size: 9643 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100108/494cc70c/attachment-0001.key>


More information about the TYPO3-team-core mailing list