[TYPO3-english] FAL images using basicoverlayPalette in TYPO3 backend (6.0.3)

Roel Krottje roelkrottje at gmail.com
Thu Sep 5 12:15:05 CEST 2013


Hi,

I have created an extbase extension that uses FAL images (stored in syst_file/sys_file_reference tables) that can be added by the backend user. The user clicks 'new image', selects an image from the file browser, and the image is added to the plugin-specific, custom content element (getFileFieldTCAConfig('file' ...) in TCA). This all works well.

The only problem is when my client addressed the fact that currently you can't edit existing images. Since there are many other fields configurable per each image (title, description, select item via relation table, etc.) it is quite needful that the client can simply select a different source image without needing to remove this image and add a new one.

I tried to add a simple file / image object browser (a browser icon) but I have only succeeded partially. Via Admin-tools -> Configuration I was able to add 'uid_local' to sys_file_reference -> palettes -> basicOverlayPalette -> showitem, and to edit sys_file_reference -> columns -> uid_local -> config ->  "allowed" to jpg,gif,png and "internal_type" to "File". 

Believe it or not, but the actions above acually gave me a field with a reference (filename) of the selected image file, including a delete (cross) and a browse icon. When I click the delete icon, nothing happened, and when I click the browse icon, the filebrowser shows displaying images, but when I click I plus sign next to an image to update the existing image - nothing happends.

So, I'm really curious (and I've looked for a solution for two days already before I decided to take my chances on the forum) - how on Earth can I update the existing image source of a FAL image added to the back-end form of a custom plugin record? What am I doing wrong? The solution I almost have in place would work very well for me, except it doesn't update the actual image / file field.

Any ideas would be much appreciated.

Thank you.

Best regards,
Roel Krottje


More information about the TYPO3-english mailing list