Skip to content
Snippets Groups Projects
Commit 19f39c12 authored by Benjamin Franzke's avatar Benjamin Franzke
Browse files

[TASK] Add required type=file example in EXT:styleguide

Resolves: #105218
Related: #105028
Releases: main
Change-Id: Id9299db6d9a5dc3529be5dfd0f1fc0d30e8eb3aa
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/86445


Tested-by: default avatarBenjamin Franzke <ben@bnf.dev>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent f48b7930
Branches
No related merge requests found
......@@ -226,6 +226,32 @@ return [
],
],
'file_1' => [
'label' => 'file_1 typical fal image',
'config' => [
'type' => 'file',
'allowed' => 'common-image-types',
'minitems' => 1,
'appearance' => [
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference',
],
'overrideChildTca' => [
'columns' => [
'crop' => [
'description' => 'field description',
],
],
'types' => [
\TYPO3\CMS\Core\Resource\FileType::IMAGE->value => [
'showitem' => '
--palette--;;imageoverlayPalette,
--palette--;;filePalette',
],
],
],
],
],
'flex_1' => [
'label' => 'flex_1 required field in flex',
'config' => [
......@@ -361,6 +387,8 @@ return [
group_1, group_2,
--div--;Inline,
inline_1, inline_2, inline_3,
--div--;File,
file_1,
--div--;Flex,
flex_1, flex_2,
--div--;Color,
......
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