Project

General

Profile

Actions

Feature #66589

closed

Allow class for flexform sheet tabs in backend for better field formatting

Added by stephen leger over 9 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2015-04-25
Due date:
% Done:

0%

Estimated time:
0.05 h
PHP Version:
Tags:
Complexity:
no-brainer
Sprint Focus:
Needs Decision

Description

Allow class for flexform sheet tabs in backend

Flexform :
<sheets>
<params>
<ROOT type="array">
<TCEforms>
<sheetTitle>LLL:EXT:myext/Resources/Private/Language/locallang.xlf:sheet.params</sheetTitle>
-> <cssClass>myCustomSheetClass</cssClass>
</TCEforms>

Rendering in backend :
<div style="display: block;" id="DTM-af104f5555-1-DIV" class="c-tablayer myCustomSheetClass">

typo3/sysext/backend/Classes/Template/DocumentTemplate.php
replace line 1747
<div style="display: none;" id="' . $id . '-' . $index . '-DIV" class="c-tablayer">' . ($def['description'] ? '<p class="c-descr">' . nl2br(htmlspecialchars($def['description'])) . '</p>' : '') . $def['content'] . '</div>';

by 1747
<div style="display: none;" id="' . $id . '-' . $index . '-DIV" class="c-tablayer' . ($def['cssClass'] ? ' ' .$def['cssClass'] : '') . '">' . ($def['description'] ? '<p class="c-descr">' . nl2br(htmlspecialchars($def['description'])) . '</p>' : '') . $def['content'] . '</div>';

typo3/sysext/backend/Classes/Form/FormEngine.php
replace line 3125
'content' => $sheetContent
by
3125 'content' => $sheetContent,
3126 'cssClass' => $dataStruct['ROOT']['TCEforms']['cssClass'] ? $this->sL($dataStruct['ROOT']['TCEforms']['cssClass']) : ''


Files

flexform_sample.gif (15.5 KB) flexform_sample.gif Flexform stephen leger, 2015-04-26 14:33

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #75266: Flexform: Palettes for FlexformClosed2016-03-25

Actions
Actions

Also available in: Atom PDF