Skip to content
Snippets Groups Projects
Commit 09ec6e8a authored by Felix Kopp's avatar Felix Kopp Committed by Markus Klein
Browse files

[TASK] Remove <table> in lowlevel configuration

EXT: lowlevel brings a tree view to display configurations.
This configuration has been wrapped into a <table> tag in
order to prohibit wrapping of long lines.

Removes <table> tag and brings nowrap replacement.
Also moves headline to pole position.

Change-Id: I0358c90cd890101e5e8f7b8d4056d4e8a571d8ee
Resolves: #49743
Releases: 6.2
Reviewed-on: https://review.typo3.org/22042
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Max Roesch
Tested-by: Max Roesch
Reviewed-by: Markus Klein
Tested-by: Markus Klein
parent f3778d8c
Branches
Tags
No related merge requests found
......@@ -140,7 +140,11 @@ class ConfigurationView {
*/
public function main() {
$arrayBrowser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Lowlevel\\Utility\\ArrayBrowser');
$label = $this->MOD_MENU['function'][$this->MOD_SETTINGS['function']];
$this->content = $this->doc->header($GLOBALS['LANG']->getLL('configuration', TRUE));
$this->content .= '<h2>' . $label . '</h2>';
$this->content .= '<div id="lowlevel-config">
<label for="search_field">' . $GLOBALS['LANG']->getLL('enterSearchPhrase', TRUE) . '</label>
<input type="text" id="search_field" name="search_field" value="' . htmlspecialchars($search_field) . '"' . $GLOBALS['TBE_TEMPLATE']->formWidth(20) . ' />
......@@ -228,7 +232,6 @@ class ConfigurationView {
$theVar['SYS']['encryptionKey'] = '***** (length: ' . strlen($GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']) . ' characters)';
}
$tree = $arrayBrowser->tree($theVar, '', '');
$label = $this->MOD_MENU['function'][$this->MOD_SETTINGS['function']];
$this->content .= $this->doc->sectionEnd();
// Variable name:
if (\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('varname')) {
......@@ -283,15 +286,8 @@ class ConfigurationView {
$this->content .= $GLOBALS['LANG']->getLL('copyPaste', TRUE) . LF . '</div>';
}
}
$this->content .= '<br /><table border="0" cellpadding="0" cellspacing="0" class="t3-tree t3-tree-config">';
$this->content .= '<tr>
<th class="t3-row-header t3-tree-config-header">' . $label . '</th>
</tr>
<tr>
<td>' . $tree . '</td>
</tr>
</table>
';
$this->content .= '<div class="nowrap">' . $tree . '</div>';
// Setting up the buttons and markers for docheader
$docHeaderButtons = $this->getButtons();
$markers = array(
......
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