Bug #18723 » 8281_v2_4_2.diff
typo3/class.db_list_extra.inc (working copy) | ||
---|---|---|
// External:
|
||
var $alternateBgColors=FALSE; // If true, table rows in the list will alternate in background colors (and have background colors at all!)
|
||
var $noCreateRecordsLink=FALSE; // If true, there will be no "add new"-button
|
||
var $allowedNewTables=array(); // Used to indicate which tables (values in the array) that can have a create-new-record link. If the array is empty, all tables are allowed.
|
||
var $deniedNewTables=array(); // Used to indicate which tables (values in the array) that cannot have a create-new-record link. If the array is empty, all tables are allowed.
|
||
var $newWizards=FALSE; // If true, the control panel will contain links to the create-new wizards for pages and tt_content elements (normally, the link goes to just creating a new element without the wizards!).
|
||
... | ... | |
'</a>';
|
||
// New record
|
||
if (!$GLOBALS['SOBE']->modTSconfig['properties']['noCreateRecordsLink']) {
|
||
if (!$this->noCreateRecordsLink) {
|
||
$buttons['new_record'] = '<a href="#" onclick="' . htmlspecialchars('return jumpExt(\'' . $this->backPath . 'db_new.php?id=' . $this->id . '\');') . '">' .
|
||
'<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/new_el.gif') . ' title="' . $LANG->getLL('newRecordGeneral', 1) . '" alt="" />' .
|
||
'</a>';
|
||
... | ... | |
if (!$TCA[$table]['ctrl']['readOnly']) {
|
||
// If new records can be created on this page, add links:
|
||
if ($this->calcPerms&($table=='pages'?8:16) && $this->showNewRecLink($table)) {
|
||
if ($this->calcPerms&($table=='pages'?8:16) && $this->showNewRecLink($table) && !$this->noCreateRecordsLink) {
|
||
if ($table=="tt_content" && $this->newWizards) {
|
||
// If mod.web_list.newContentWiz.overrideWithExtension is set, use that extension's create new content wizard instead:
|
||
$tmpTSc = t3lib_BEfunc::getModTSconfig($this->pageinfo['uid'],'mod.web_list');
|
||
... | ... | |
($table!='pages' && ($this->calcPerms&16)) || // For NON-pages, must have permission to edit content on this parent page
|
||
($table=='pages' && ($this->calcPerms&8)) // For pages, must have permission to create new pages here.
|
||
) {
|
||
if ($this->showNewRecLink($table)) {
|
||
if (!$this->noCreateRecordsLink && $this->showNewRecLink($table)) {
|
||
$params='&edit['.$table.']['.(-($row['_MOVE_PLH']?$row['_MOVE_PLH_uid']:$row['uid'])).']=new';
|
||
$cells['new']='<a href="#" onclick="'.htmlspecialchars(t3lib_BEfunc::editOnClick($params,$this->backPath,-1)).'">'.
|
||
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/new_'.($table=='pages'?'page':'el').'.gif','width="'.($table=='pages'?13:11).'" height="12"').' title="'.$LANG->getLL('new'.($table=='pages'?'Page':'Record'),1).'" alt="" />'.
|
typo3/db_list.php (working copy) | ||
---|---|---|
$dblist->tableTSconfigOverTCA = $this->modTSconfig['properties']['table.'];
|
||
$dblist->clickTitleMode = $this->modTSconfig['properties']['clickTitleMode'];
|
||
$dblist->alternateBgColors=$this->modTSconfig['properties']['alternateBgColors']?1:0;
|
||
$dblist->noCreateRecordsLink=$this->modTSconfig['properties']['noCreateRecordsLink']?1:0;
|
||
$dblist->allowedNewTables = t3lib_div::trimExplode(',', $this->modTSconfig['properties']['allowedNewTables'], 1);
|
||
$dblist->deniedNewTables = t3lib_div::trimExplode(',', $this->modTSconfig['properties']['deniedNewTables'], 1);
|
||
$dblist->newWizards=$this->modTSconfig['properties']['newWizards']?1:0;
|
- « Previous
- 1
- 2
- 3
- Next »