#99767Allowed file types are not displayed with type="input", renderType="inputLink" and new type="link" (in v12)
Description
This used to be the case with type=“inline”. Here, the allowed file types were displayed in the form and in the link browser.
Reproduce
There is an example extension available to reproduce, was tested with v12 latest main:
https://github.com/sypets/sypets_example_inputlink
1. in Backend insert a plugin using the “Content element wizard” in tab plugins “InputLink plugin“
2. check out the fields in “plugin” tab and compare the behaviour of various types
3. Look at flexform file
Screenshot
Screenshot_show_allowed_file_extensions.png
in type=“file” the allowed file extensions are displayed (as previously in “inline”) in type=“link” and renderType=“linkType” not.
Versions
- used latest v11 (11.5.22)
- this can also be reproduced with v12, with type=“link”
Example
<settings.link>
<TCEforms>
<label>Link</label>
<config>
<type>input</type>
<renderType>inputLink</renderType>
<fieldControl>
<linkPopup>
<options>
<allowedExtensions>bib</allowedExtensions>
<blindLinkFields>class,param,target,title</blindLinkFields>
<blindLinkOptions>page,mail,telephone,folder,tx_calendarize_domain_model_event,news</blindLinkOptions>
<title>Select specific file (*.bib)</title>
</options>
</linkPopup>
</fieldControl>
</config>
</TCEforms>
</settings.link>
Documentation
- v11: inputLink: https://docs.typo3.org/m/typo3/reference-tca/11.5/en-us/ColumnsConfig/Type/Input/Link/Index.html#columns-input-rendertype-inputlink
- v12: inputLink was deprecated, type=“link” should be used: https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ColumnsConfig/Type/Link/Index.html#columns-link
Reviews 1
Related issues 1
Files 1
History 1011
-
Sybille Peters changed description <span data-processor="relativetime" data-value="2023-01-31T12:14:24+00:00" > 01/31/23, 12:14 </span>
-
Sybille Peters changed description <span data-processor="relativetime" data-value="2023-01-31T12:18:18+00:00" > 01/31/23, 12:18 </span>
-
Sybille Peters changed subject
Allowed file types are not displayed with type="input", renderType="inputLink"Allowed file types are not displayed with type="input", renderType="inputLink" and new type="link" (in v12) <span data-processor="relativetime" data-value="2023-01-31T12:20:49+00:00" > 01/31/23, 12:20 </span> -
Sybille Peters changed attached Screenshot_show_allowed_file_extensions.png description <span data-processor="relativetime" data-value="2023-01-31T13:28:00+00:00" > 01/31/23, 13:28 </span>
-
Oliver Bartsch commented and changed status
NewNeeds Feedback <span data-processor="relativetime" data-value="2023-01-31T17:04:49+00:00" > 01/31/23, 17:04 </span> -
Sybille Peters commented <span data-processor="relativetime" data-value="2023-01-31T17:17:09+00:00" > 01/31/23, 17:17 </span>
@Oliver thanks for the feedback.
bug or feature request is always a matter of perspective ;-)
I would like to leave that up to you as core developer.> I can’t remember, renderType=“inputLink” displayed any “allowed file types” in any previous TYPO3 version. Could it be, that this is actually a feature request?
Correct, that is not possible in inputLink. It affects inputLink and link types. But I changed my Flexform from type “inline” where the allowed file types were displayed.
For me, if this is classified as “feature”, there won’t be a chance to backport it to v11 (but that might also not be possible for patch of type bug).
I would expect the allowed file types to be displayed just like they are for type file / inline (in case files are selectable here).
I have this specific use case where I explicitly need a type=“inputLink” or type=“link” (type=‘file’ does not suffice) and have been struggling to find a way to make it behave as intended (as described above). I was surprised that the allowed file types were not displayed. It would be nice to have that for better usability in the BE.
-
Sybille Peters changed status
Needs FeedbackNew <span data-processor="relativetime" data-value="2023-01-31T17:17:20+00:00" > 01/31/23, 17:17 </span> -
Sybille Peters changed Related to #99766 <span data-processor="relativetime" data-value="2023-01-31T17:18:27+00:00" > 01/31/23, 17:18 </span>
-
Sybille Peters commented <span data-processor="relativetime" data-value="2023-01-31T17:21:58+00:00" > 01/31/23, 17:21 </span>
I have already looked in the code, but it looks a bit difficult. Specifically, how to reuse certain parts and behaviour.
For type=file, FilesControlContainer is used, which uses Fluid:
<f:if condition="{allowedFileTypes}"> <div class="help-block"> <f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.allowedFileExtensions"/><br> <f:for each="{allowedFileTypes}" as="allowedFileType"> <span class="badge badge-success">{allowedFileType}</span> </f:for> </div> </f:if> -
Georg Ringer commented and changed TYPO3 Version
1114 <span data-processor="relativetime" data-value="2026-11-01T09:22:23+00:00" > 11/01/26, 09:22 </span>still valid in v14
-
Gerrit Code Review pushed patch set 1 for main to change 97468 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-09T19:52:37+00:00" > 11/09/26, 19:52 </span>
Hi Sybille, which information, based on which config do you miss compared to previous versions?
I can’t remember, renderType=“inputLink” displayed any “allowed file types” in any previous TYPO3 version. Could it be, that this is actually a feature request?
Best, Oli