Project

General

Profile

Feature #23506 » 15645_v5.patch

Administrator Admin, 2010-10-07 15:38

View differences:

typo3/sysext/lang/locallang_csh_corebe.xml (working copy)
<label index="_list_searchbox.seeAlso">xMOD_csh_corebe:list_module</label>
<label index="_list_searchbox.image">EXT:lang/cshimages/core_15.png,</label>
<label index="list_options.alttitle">List module options</label>
<label index="list_options.description">Enable the &quot;Extended view&quot; mode to see additional control buttons for each record in the listing. Enable the &quot;Clipboard&quot; to see the clipboard and its content.</label>
<label index="list_options.description">Enable additional options like the &quot;Extended view&quot; mode to see additional control buttons for each record in the listing or the &quot;Clipboard&quot; to see the clipboard and its content.</label>
<label index="_list_options.seeAlso">xMOD_csh_corebe:list_module,
xMOD_csh_corebe:list_clipboard,
xMOD_csh_corebe:filelist_options</label>
typo3/sysext/list/mod1/db_list.php (working copy)
$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'] = '1';
}
elseif ($this->modTSconfig['properties']['enableDisplayBigControlPanel'] == 'deactivated') {
$this->MOD_SETTINGS['bigControlPanel'] = '0';
}
// Set predefined value for Clipboard:
if ($this->modTSconfig['properties']['enableClipBoard'] == 'activated') {
$this->MOD_SETTINGS['clipBoard'] = '1';
}
elseif ($this->modTSconfig['properties']['enableClipBoard'] == 'deactivated') {
$this->MOD_SETTINGS['clipBoard'] = '0';
}
// Set predefined value for LocalizationView:
if ($this->modTSconfig['properties']['enableLocalizationView'] == 'activated') {
$this->MOD_SETTINGS['localization'] = '1';
}
elseif ($this->modTSconfig['properties']['enableLocalizationView'] == 'deactivated') {
$this->MOD_SETTINGS['localization'] = '0';
}
// Initialize the dblist object:
$dblist = t3lib_div::makeInstance('localRecordList');
$dblist->backPath = $BACK_PATH;
......
$this->body.='
<!--
Listing options for clipboard and thumbnails
Listing options for extended view, clipboard and localization view
-->
<div id="typo3-listOptions">
<form action="" method="post">';
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[bigControlPanel]',$this->MOD_SETTINGS['bigControlPanel'],'db_list.php',($this->table?'&table='.$this->table:''),'id="checkLargeControl"').' <label for="checkLargeControl">'.$LANG->getLL('largeControl',1).'</label><br />';
if ($dblist->showClipboard) {
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[clipBoard]',$this->MOD_SETTINGS['clipBoard'],'db_list.php',($this->table?'&table='.$this->table:''),'id="checkShowClipBoard"').' <label for="checkShowClipBoard">'.$LANG->getLL('showClipBoard',1).'</label><br />';
// Add "display bigControlPanel" checkbox:
if ($this->modTSconfig['properties']['enableDisplayBigControlPanel'] == 'selectable') {
$this->body .= t3lib_BEfunc::getFuncCheck($this->id, 'SET[bigControlPanel]', $this->MOD_SETTINGS['bigControlPanel'], 'db_list.php', ($this->table ? '&table=' . $this->table : ''), 'id="checkLargeControl"') . ' <label for="checkLargeControl">' . $LANG->getLL('largeControl', 1) . '</label><br />';
}
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[localization]',$this->MOD_SETTINGS['localization'],'db_list.php',($this->table?'&table='.$this->table:''),'id="checkLocalization"').' <label for="checkLocalization">'.$LANG->getLL('localization',1).'</label><br />';
// Add "clipboard" checkbox:
if ($this->modTSconfig['properties']['enableClipBoard'] == 'selectable') {
if ($dblist->showClipboard) {
$this->body .= t3lib_BEfunc::getFuncCheck($this->id, 'SET[clipBoard]', $this->MOD_SETTINGS['clipBoard'], 'db_list.php', ($this->table ? '&table=' . $this->table : ''), 'id="checkShowClipBoard"') . ' <label for="checkShowClipBoard">' . $LANG->getLL('showClipBoard', 1) . '</label><br />';
}
}
// Add "localization view" checkbox:
if ($this->modTSconfig['properties']['enableLocalizationView'] == 'selectable') {
$this->body .= t3lib_BEfunc::getFuncCheck($this->id, 'SET[localization]', $this->MOD_SETTINGS['localization'], 'db_list.php', ($this->table ? '&table=' . $this->table : ''), 'id="checkLocalization"') . ' <label for="checkLocalization">' . $LANG->getLL('localization', 1) . '</label><br />';
}
$this->body.='
</form>
</div>';
$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();
t3lib/config_default.php (working copy)
'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.
typo3/sysext/filelist/mod1/file_list.php (working copy)
$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'] = '1';
}
elseif ($GLOBALS['BE_USER']->getTSConfigVal('options.file_list.enableDisplayBigControlPanel') == 'deactivated') {
$this->MOD_SETTINGS['bigControlPanel'] = '0';
}
// Set predefined value for DisplayThumbnails:
if ($GLOBALS['BE_USER']->getTSConfigVal('options.file_list.enableDisplayThumbnails') == 'activated') {
$this->MOD_SETTINGS['displayThumbs'] = '1';
}
elseif ($GLOBALS['BE_USER']->getTSConfigVal('options.file_list.enableDisplayThumbnails') == 'deactivated') {
$this->MOD_SETTINGS['displayThumbs'] = '0';
}
// Set predefined value for Clipboard:
if ($GLOBALS['BE_USER']->getTSConfigVal('options.file_list.enableClipBoard') == 'activated') {
$this->MOD_SETTINGS['clipBoard'] = '1';
}
elseif ($GLOBALS['BE_USER']->getTSConfigVal('options.file_list.enableClipBoard') == 'deactivated') {
$this->MOD_SETTINGS['clipBoard'] = '0';
}
// 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'];
......
$pageContent.='
<!--
Listing options for clipboard and thumbnails
Listing options for extended view, clipboard and thumbnails
-->
<div id="typo3-listOptions">
';
// Add "display bigControlPanel" checkbox:
$pageContent.=t3lib_BEfunc::getFuncCheck($this->id, 'SET[bigControlPanel]', $this->MOD_SETTINGS['bigControlPanel'], 'file_list.php', '', 'id="bigControlPanel"') . '<label for="bigControlPanel"> ' .$LANG->getLL('bigControlPanel', 1) . '</label><br />';
if ($GLOBALS['BE_USER']->getTSConfigVal('options.file_list.enableDisplayBigControlPanel') == 'selectable') {
$pageContent .= t3lib_BEfunc::getFuncCheck($this->id, 'SET[bigControlPanel]', $this->MOD_SETTINGS['bigControlPanel'], 'file_list.php', '', 'id="bigControlPanel"') . '<label for="bigControlPanel"> ' .$LANG->getLL('bigControlPanel', 1) . '</label><br />';
}
// Add "display thumbnails" checkbox:
$pageContent.=t3lib_BEfunc::getFuncCheck($this->id,'SET[displayThumbs]',$this->MOD_SETTINGS['displayThumbs'],'file_list.php','','id="checkDisplayThumbs"').' <label for="checkDisplayThumbs">'.$LANG->getLL('displayThumbs',1).'</label><br />';
if ($GLOBALS['BE_USER']->getTSConfigVal('options.file_list.enableDisplayThumbnails') == 'selectable') {
$pageContent .= t3lib_BEfunc::getFuncCheck($this->id, 'SET[displayThumbs]', $this->MOD_SETTINGS['displayThumbs'], 'file_list.php', '', 'id="checkDisplayThumbs"') . ' <label for="checkDisplayThumbs">' . $LANG->getLL('displayThumbs', 1) . '</label><br />';
}
// Add clipboard button
$pageContent.=t3lib_BEfunc::getFuncCheck($this->id,'SET[clipBoard]',$this->MOD_SETTINGS['clipBoard'],'file_list.php','','id="checkClipBoard"').' <label for="checkClipBoard">'.$LANG->getLL('clipBoard',1).'</label>';
// Add "clipboard" checkbox:
if ($GLOBALS['BE_USER']->getTSConfigVal('options.file_list.enableClipBoard') == 'selectable') {
$pageContent .= t3lib_BEfunc::getFuncCheck($this->id, 'SET[clipBoard]', $this->MOD_SETTINGS['clipBoard'], 'file_list.php', '', 'id="checkClipBoard"') . ' <label for="checkClipBoard">' . $LANG->getLL('clipBoard', 1) . '</label>';
}
$pageContent.='
</div>
(2-2/3)