Index: t3lib/config_default.php
===================================================================
--- t3lib/config_default.php (Revision 9019)
+++ t3lib/config_default.php (Arbeitskopie)
@@ -226,8 +226,13 @@
'forceCharset' => '', // String: Normally the charset of the backend users language selection is used. If you set this value to a charset found in t3lib/csconvtbl/ (or "utf-8") the backend (and database) will ALWAYS use this charset. Always use a lowercase value.
'installToolPassword' => '', // String: This is the md5-hashed password for the Install Tool. Set this to '' and access will be totally denied. PLEASE consider to externally password protect the typo3/install/ folder, eg. with a .htaccess file.
'defaultUserTSconfig' => 'options.enableShortcuts=1
- options.enableShowPalettes=1', // String (exclude). Enter lines of default backend user/group TSconfig.
- 'defaultPageTSconfig' => '', // String (exclude).Enter lines of default Page TSconfig.
+ options.enableShowPalettes=1
+ options.file_list.enableDisplayBigControlPanel=selectable
+ options.file_list.enableDisplayThumbnails=selectable
+ options.file_list.enableClipBoard=selectable', // String (exclude). Enter lines of default backend user/group TSconfig.
+ 'defaultPageTSconfig' => 'mod.web_list.enableDisplayBigControlPanel=selectable
+ mod.web_list.enableClipBoard=selectable
+ mod.web_list.enableLocalizationView=selectable', // String (exclude).Enter lines of default Page TSconfig.
'defaultPermissions' => array ( // Default permissions set for new pages in t3lib/tce_main.php. Keys are 'show,edit,delete,new,editcontent'. Enter as comma-list
// 'user' => '', // default in tce_main is 'show,edit,delete,new,editcontent'. If this is set (uncomment), this value is used instead.
// 'group' => '', // default in tce_main is 'show,edit,new,editcontent'. If this is set (uncomment), this value is used instead.
Index: typo3/sysext/list/mod1/db_list.php
===================================================================
--- typo3/sysext/list/mod1/db_list.php (Revision 9019)
+++ typo3/sysext/list/mod1/db_list.php (Arbeitskopie)
@@ -206,6 +206,28 @@
$this->pageinfo = t3lib_BEfunc::readPageAccess($this->id,$this->perms_clause);
$access = is_array($this->pageinfo) ? 1 : 0;
+ // Apply predefined values for hidden checkboxes
+ // Set predefined value for DisplayBigControlPanel:
+ if ($this->modTSconfig['properties']['enableDisplayBigControlPanel'] === 'activated') {
+ $this->MOD_SETTINGS['bigControlPanel'] = TRUE;
+ } elseif ($this->modTSconfig['properties']['enableDisplayBigControlPanel'] === 'deactivated') {
+ $this->MOD_SETTINGS['bigControlPanel'] = FALSE;
+ }
+
+ // Set predefined value for Clipboard:
+ if ($this->modTSconfig['properties']['enableClipBoard'] === 'activated') {
+ $this->MOD_SETTINGS['clipBoard'] = TRUE;
+ } elseif ($this->modTSconfig['properties']['enableClipBoard'] === 'deactivated') {
+ $this->MOD_SETTINGS['clipBoard'] = FALSE;
+ }
+
+ // Set predefined value for LocalizationView:
+ if ($this->modTSconfig['properties']['enableLocalizationView'] === 'activated') {
+ $this->MOD_SETTINGS['localization'] = TRUE;
+ } elseif ($this->modTSconfig['properties']['enableLocalizationView'] === 'deactivated') {
+ $this->MOD_SETTINGS['localization'] = FALSE;
+ }
+
// Initialize the dblist object:
$dblist = t3lib_div::makeInstance('localRecordList');
$dblist->backPath = $BACK_PATH;
@@ -369,21 +391,60 @@
$this->body.='
';
- $this->body.= t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'list_options', $GLOBALS['BACK_PATH']);
+ // Add CSH, if at least one option is available:
+ if ($this->modTSconfig['properties']['enableDisplayBigControlPanel'] !== 'deactivated'
+ || $this->modTSconfig['properties']['enableClipBoard'] !== 'deactivated'
+ || $this->modTSconfig['properties']['enableLocalizationView'] !== 'deactivated') {
+ $this->body .= t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'list_options', $GLOBALS['BACK_PATH']);
+ }
+
// Printing clipboard if enabled:
if ($this->MOD_SETTINGS['clipBoard'] && $dblist->showClipboard) {
$this->body.= $dblist->clipObj->printClipboard();
Index: typo3/sysext/lang/locallang_csh_corebe.xml
===================================================================
--- typo3/sysext/lang/locallang_csh_corebe.xml (Revision 9019)
+++ typo3/sysext/lang/locallang_csh_corebe.xml (Arbeitskopie)
@@ -141,7 +141,7 @@
-
+
Index: typo3/sysext/filelist/mod1/file_list.php
===================================================================
--- typo3/sysext/filelist/mod1/file_list.php (Revision 9019)
+++ typo3/sysext/filelist/mod1/file_list.php (Arbeitskopie)
@@ -238,6 +238,28 @@
$this->filelist = t3lib_div::makeInstance('fileList');
$this->filelist->backPath = $BACK_PATH;
+ // Apply predefined values for hidden checkboxes
+ // Set predefined value for DisplayBigControlPanel:
+ if ($GLOBALS['BE_USER']->getTSConfigVal('options.file_list.enableDisplayBigControlPanel') === 'activated') {
+ $this->MOD_SETTINGS['bigControlPanel'] = TRUE;
+ } elseif ($GLOBALS['BE_USER']->getTSConfigVal('options.file_list.enableDisplayBigControlPanel') === 'deactivated') {
+ $this->MOD_SETTINGS['bigControlPanel'] = FALSE;
+ }
+
+ // Set predefined value for DisplayThumbnails:
+ if ($GLOBALS['BE_USER']->getTSConfigVal('options.file_list.enableDisplayThumbnails') === 'activated') {
+ $this->MOD_SETTINGS['displayThumbs'] = TRUE;
+ } elseif ($GLOBALS['BE_USER']->getTSConfigVal('options.file_list.enableDisplayThumbnails') === 'deactivated') {
+ $this->MOD_SETTINGS['displayThumbs'] = FALSE;
+ }
+
+ // Set predefined value for Clipboard:
+ if ($GLOBALS['BE_USER']->getTSConfigVal('options.file_list.enableClipBoard') === 'activated') {
+ $this->MOD_SETTINGS['clipBoard'] = TRUE;
+ } elseif ($GLOBALS['BE_USER']->getTSConfigVal('options.file_list.enableClipBoard') === 'deactivated') {
+ $this->MOD_SETTINGS['clipBoard'] = FALSE;
+ }
+
// if user never opened the list module, set the value for displayThumbs
if (!isset($this->MOD_SETTINGS['displayThumbs'])) {
$this->MOD_SETTINGS['displayThumbs'] = $BE_USER->uc['thumbnailsByDefault'];
@@ -331,19 +353,46 @@
$pageContent.='