Commit b02ca5c4 authored by Felix Kopp's avatar Felix Kopp Committed by Jigal van Hemert
Browse files

[TASK] Remove "Page Information"

Removes the Page Information function from page backend module.
Also removes the Page Information table from within the Info>Pagetree.
Deprecates the function to show the info box.

The show_item function from within (i) icon already includes all infos.

Change-Id: I2f84fe6129f8c57c29610443b20064993ae0736c
Resolves: #37935
Releases: 6.0
Reviewed-on: http://review.typo3.org/13443
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
parent dd50ddde
......@@ -1922,8 +1922,11 @@ class tx_cms_layout extends recordList {
* @param array $rec Page record
* @param boolean $edit If set, there will be shown an edit icon, linking to editing of the page properties.
* @return string HTML for the box.
* @deprecated and unused since 6.0, will be removed two versions later
*/
function getPageInfoBox($rec, $edit = 0) {
t3lib_div::logDeprecatedFunction();
// If editing of the page properties is allowed:
if ($edit) {
$params = '&edit[pages][' . $rec['uid'] . ']=edit';
......
......@@ -180,13 +180,13 @@ class SC_db_layout {
// Currently selected language for editing content elements
var $current_sys_language;
// Module configuration
var $MCONF=array();
var $MCONF = array();
// Menu configuration
var $MOD_MENU=array();
var $MOD_MENU = array();
// Module settings (session variable)
var $MOD_SETTINGS=array();
var $MOD_SETTINGS = array();
// Array, where files to include is accumulated in the init() function
var $include_once=array();
var $include_once = array();
// Array of tables to be listed by the Web > Page module in addition to the default tables
var $externalTables = array();
......@@ -304,10 +304,6 @@ class SC_db_layout {
if ($this->modTSconfig['properties']['QEisDefault']) ksort($this->MOD_MENU['function']);
$this->MOD_MENU['function'] = t3lib_BEfunc::unsetMenuItems($this->modTSconfig['properties'], $this->MOD_MENU['function'], 'menu.function');
if (!$this->modTSconfig['properties']['disablePageInformation']) {
$this->MOD_MENU['function'][3] = $GLOBALS['LANG']->getLL('pageInformation');
}
// Remove QuickEdit as option if page type is not...
if (!t3lib_div::inList($GLOBALS['TYPO3_CONF_VARS']['FE']['content_doktypes'] . ',6', $this->pageinfo['doktype'])) {
unset($this->MOD_MENU['function'][0]);
......@@ -1020,7 +1016,8 @@ class SC_db_layout {
foreach($tcaItems as $temp) {
$colList[] = $temp[1];
}
} else { // ... should be impossible that colPos has no array. But this is the fallback should it make any sense:
} else {
// ... should be impossible that colPos has no array. But this is the fallback should it make any sense:
$colList = array('1', '0', '2', '3');
}
if (strcmp($this->colPosList, '')) {
......@@ -1051,8 +1048,8 @@ class SC_db_layout {
if (isset($this->MOD_SETTINGS) && isset($this->MOD_MENU)) {
$h_func = t3lib_BEfunc::getFuncMenu($this->id, 'SET[' . $table . ']', $this->MOD_SETTINGS[$table], $this->MOD_MENU[$table], 'db_layout.php', '');
} else {
$h_func = '';
}
$h_func = '';
}
}
// Start the dblist object:
......@@ -1068,7 +1065,7 @@ class SC_db_layout {
$dblist->generateList();
// Adding the list content to the tableOutput variable:
$tableOutput[$table]=
$tableOutput[$table] =
($h_func ? $h_func . '<br /><img src="clear.gif" width="1" height="4" alt="" /><br />' : '').
$dblist->HTMLcode.
($h_func_b ? '<img src="clear.gif" width="1" height="10" alt="" /><br />' . $h_func_b : '');
......@@ -1091,46 +1088,33 @@ class SC_db_layout {
$content .= $this->doc->header($this->pageinfo['title']);
// Now, create listing based on which element is selected in the function menu:
if ($this->MOD_SETTINGS['function']==3) {
// Making page info:
$content .= $this->doc->section($GLOBALS['LANG']->getLL('pageInformation'), $dblist->getPageInfoBox($this->pageinfo, $this->CALC_PERMS&2), 0, 1);
} else {
// Add the content for each table we have rendered (traversing $tableOutput variable)
foreach ($tableOutput as $table => $output) {
$content .= $this->doc->section('', $output, TRUE, TRUE, 0, TRUE);
$content .= $this->doc->spacer(15);
$content .= $this->doc->sectionEnd();
}
// Add the content for each table we have rendered (traversing $tableOutput variable)
foreach ($tableOutput as $table => $output) {
$content .= $this->doc->section('', $output, TRUE, TRUE, 0, TRUE);
$content .= $this->doc->spacer(15);
$content .= $this->doc->sectionEnd();
}
// Making search form:
if (!$this->modTSconfig['properties']['disableSearchBox'] && count($tableOutput)) {
$sectionTitle = t3lib_BEfunc::wrapInHelp('xMOD_csh_corebe', 'list_searchbox', $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.search', TRUE));
$content .= $this->doc->section(
$sectionTitle,
$dblist->getSearchBox(0),
FALSE, TRUE, FALSE, TRUE
);
}
// Making search form:
if (!$this->modTSconfig['properties']['disableSearchBox'] && count($tableOutput)) {
$sectionTitle = t3lib_BEfunc::wrapInHelp('xMOD_csh_corebe', 'list_searchbox', $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.search', TRUE));
$content .= $this->doc->section(
$sectionTitle,
$dblist->getSearchBox(0),
FALSE, TRUE, FALSE, TRUE
);
}
// Additional footer content
$footerContentHook = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/db_layout.php']['drawFooterHook'];
if (is_array($footerContentHook)) {
foreach ($footerContentHook as $hook) {
$params = array();
$content .= t3lib_div::callUserFunction($hook, $params, $this);
}
// Additional footer content
$footerContentHook = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/db_layout.php']['drawFooterHook'];
if (is_array($footerContentHook)) {
foreach ($footerContentHook as $hook) {
$params = array();
$content .= t3lib_div::callUserFunction($hook, $params, $this);
}
// Add spacer in bottom of page:
$content.=$this->doc->spacer(10);
}
// Ending page:
$content .= $this->doc->spacer(10);
return $content;
}
......
......@@ -123,12 +123,6 @@ class tx_cms_webinfo_page extends t3lib_extobjbase {
}
}
// PAGE INFORMATION
if ($this->pObj->pageinfo['uid']) {
$theOutput.=$this->pObj->doc->spacer(10);
$theOutput.=$this->pObj->doc->section($LANG->getLL('pageInformation'), $dblist->getPageInfoBox($this->pObj->pageinfo, $this->pObj->CALC_PERMS&2), 0, 1);
}
return $theOutput;
}
}
......
......@@ -306,7 +306,6 @@ var typoscriptWords = {
'disablePrefixComment': 'reserved',
'disablePrependAtCopy': 'reserved',
'disableSearchBox': 'reserved',
'disablePageInformation': 'reserved',
'disableSingleTableView': 'reserved',
'disableTabInTextarea': 'reserved',
'displayActiveOnLoad': 'reserved',
......@@ -1638,7 +1637,6 @@ var typoscriptWords = {
'disablePrefixComment': 'reserved',
'disablePrependAtCopy': 'reserved',
'disableSearchBox': 'reserved',
'disablePageInformation': 'reserved',
'disableSingleTableView': 'reserved',
'disableTabInTextarea': 'reserved',
'displayActiveOnLoad': 'reserved',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment