FluidTYPO3 / vhs

TYPO3 extension VHS: Fluid ViewHelpers
https://fluidtypo3.org
Other
190 stars 229 forks source link

[BUGFIX] Handle both t3:// and normal file names at once #1716

Closed cweiske closed 3 years ago

cweiske commented 3 years ago

Fixup for "[FEATURE] Handle t3://file?uid=23 URLs in view helper"

The value of field

<flux:field type="input" config="{renderType: 'inputLink'}"/>

gets different values in TYPO3 v9 and v10:

This patch automatically detects t3:// URLs in all image sources, regardless if $treatAsUid is given.

That way the view helpers can load an image regardless if they have been stored in TYPO3 v9 or v10:

<v:resource.file identifier="fileadmin/user_upload/image.jpg"/>
<v:resource.file identifier="t3://file?uid=2342"/>