madeyourday / contao-rocksolid-custom-elements

RockSolid Custom Elements Contao Extension
http://rocksolidthemes.com/de/contao/plugins/custom-content-elements
MIT License
48 stars 12 forks source link

Adding images: use or override Metadata #81

Closed Xendiadyon closed 7 years ago

Xendiadyon commented 7 years ago

Good morning :)

We are using a Teaser-Box, where we can implement teaser images: image

However, in Contao 4.4(.1), there is a new field "override Metadata" when adding images. In the actual configuration it is not possible to add or edit the Metadata.

Is there an easy way to implement the "override Metadata" field or automatically import the metadata from the file-manager?

I can get the Metadata out of the FilesModel image But I have to check how I could pass the meta-Data to the \Picture::create() routine.

Xendiadyon commented 7 years ago

Okay, Adding the copyright was rather easy, as I can set it outside of the $this->insert('picture_default', ...) routine.

image

But I still can't add an alt-Attribute, less a self-defined alt-Attribute

ausi commented 7 years ago

If you use $this->getImageObject(), the alt text from the file manager should get applied automatically.