1

I have used TYPO3 Mask to make an element with a background image. But it looks like that the image is not saved. It is not shown in the frontend.

Backend view of the content element

David
  • 5,882
  • 3
  • 33
  • 44
Jeppe Donslund
  • 469
  • 9
  • 25
  • Please provide more information: versions (TYPO3, Mask) and your element definition (DB,TCA,templates). it could help to identify your problem. – Bernd Wilke πφ Feb 07 '20 at 07:18

1 Answers1

1

Although you use mask you need to define your own rendering. And that depends on the fields you used in the mask definition (using existing fields and creating new fields).

And the names may change when you exported the mask definition.

And you need to create the additional fields in the database (clear cache and do a database compare, or deactive/reactive the extension).

Then you can look for the field with a <f:debug title="inside my CE">{_all}</f:debug> in the rendering template.

Bernd Wilke πφ
  • 10,390
  • 1
  • 19
  • 38
  • There were nothing in Compare Database. I have tried to add a normal image field and that image is saved without any problems. But the Backgroudn Image field is not saved. If I debug, I get this: background_image => 0 (integer) – Jeppe Donslund Feb 07 '20 at 07:40
  • maybe your definition has an error. please add it to your question. – Bernd Wilke πφ Feb 07 '20 at 07:58
  • What is the difference between 'normal' image field and the 'background_image' field in your mask configuration – existing field vs. new custom field? Did you check if the background_image database field exists and if there's a value? – sebkln Feb 07 '20 at 15:55
  • for new file fields you might miss a fileprocessor. – Bernd Wilke πφ Feb 12 '20 at 09:51