DMAGmbH / dma_elementgenerator

DMA Elementgenerator (Contao)
45 stars 17 forks source link

Get image_data from tl_content image subpalette(s) #114

Closed gmpf closed 3 years ago

gmpf commented 5 years ago

This way, the available options are always compatible with the Contao core. The motivation for this change is the fact that the field title has been renamed to imageTitle in Contao 4.4, making the field disappear from ElementGenerator content elements with image fields. Changes like that will be reflected automatically with this change.

Currently, creating a subpalette within the same ElementGenerator field does not seem to be supported, which is why subpalettes of the useImage subpalette are merged into the useImage subpalette. This affects overwriteMeta in Contao 4.4.

gmpf commented 5 years ago

Added a second commit, allowing the selector field overwriteMeta (and potential future subpalette selector fields) to remain in the list instead of replacing it with the subpalette it selects.