Commit ff8fbbb3 authored by Armin Ruediger Vieweg's avatar Armin Ruediger Vieweg Committed by Frans Saris
Browse files

[FEATURE] Show allowed file extensions in FAL field

Above the list of file relations are buttons to add or upload new images.
Now, behind these buttons a label appears, which shows the allowed file
extensions to upload/use.

Resolves: #45428
Releases: master
Change-Id: I6e7caea22c6198819084db4c737088cc6f7eb02f
Reviewed-on: http://review.typo3.org/36443

Reviewed-by: Benjamin Kott's avatarBenjamin Kott <info@bk2k.info>
Tested-by: Benjamin Kott's avatarBenjamin Kott <info@bk2k.info>
Reviewed-by: Frans Saris's avatarFrans Saris <franssaris@gmail.com>
Tested-by: Frans Saris's avatarFrans Saris <franssaris@gmail.com>
parent 834514ba
......@@ -950,6 +950,8 @@ class InlineElement {
}
}
$allowedLabel = $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:cm.allowedFileExtensions', TRUE);
$item .= '<span class="btn-after">' . $allowedLabel . ' ' . $allowed . '</span>';
return $item;
}
......
......@@ -919,6 +919,9 @@ Would you like to save now in order to refresh the display?</source>
<trans-unit id="cm.more" xml:space="preserve">
<source>More options...</source>
</trans-unit>
<trans-unit id="cm.allowedFileExtensions" xml:space="preserve">
<source>Allowed file extensions:</source>
</trans-unit>
<trans-unit id="tree.defaultPageTitle" xml:space="preserve">
<source>[Default Title]</source>
</trans-unit>
......
......@@ -22,6 +22,11 @@
vertical-align: top;
}
.btn-after {
margin-left: 15px;
color: #666;
}
> table {
margin-bottom: 0;
......
......@@ -8968,6 +8968,10 @@ fieldset[disabled] .table .btn-checkbox-holder input[type=checkbox]:checked + .b
.typo3-TCEforms .c-tablayer td {
vertical-align: top;
}
.typo3-TCEforms .c-tablayer .btn-after {
margin-left: 15px;
color: #666;
}
.typo3-TCEforms .c-tablayer > table {
margin-bottom: 0;
}
......
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