fileFolder

fileFolder
Type:string
Scope:Display / Proc.
RenderType:all

Specifying a folder from where files are added to the item array.

Specify the folder relative to the \TYPO3\CMS\Core\Core\Environment::getPublicPath(), possibly using the prefix “EXT:” to point to an extension folder.

Files from the folder is selected recursively to the level specified by fileFolder_recursions and only files of the extension defined by fileFolder_extList are selected.

Only the file reference relative to the “fileFolder” is stored.

If the files are images (gif,png,jpg) they will be configured as icons (third parameter in items array).

fileFolder_extList
Type:string
Scope:Display / Proc.
RenderType:all

List of extensions to select. If blank, all files are selected. Specify list in lowercase.

fileFolder_recursions
Type:integer
Scope:Display / Proc.
RenderType:all

Depth of directory recursions. Default is 99. Specify in range from 0-99. 0 (zero) means no recursion into subdirectories. Only useful in combination with property fileFolder.

Examples

Select SVGs recursively from a folder

'columns' => [
    'select_single_7' => [
        'exclude' => 1,
        'label' => 'select_single_7 fileFolder, dummy first entry, selectIcons',
        'config' => [
            'type' => 'select',
            'renderType' => 'selectSingle',
            'items' => [
                [
                    '',
                    0,
                ],
            ],
            'fileFolder' => 'EXT:styleguide/Resources/Public/Icons',
            'fileFolder_extList' => 'svg',
            'fileFolder_recursions' => 1,
            'fieldWizard' => [
                'selectIcons' => [
                    'disabled' => false,
                ],
            ],
        ],
    ],
]