Metadata
In Contao, you can add metadata to any kind of file. Metadata is mainly used as a universal site-wide way to display a short description or caption for each file in image galleries and downloads. In a multilingual project, you can create separate metadata for each language.
Contao supports the following metadata:
- Title
- Alternative text
- Link
- Caption
- License URL
The HTML output
Content element of type “Image” generates the following HTML code:
License URL On the page on which the image is embedded the license URL is used in the SCHEMA-ImageObject of the JSON-LD to comply with licensing notices.
The HTML output The license URL generates the following HTML code:
To display the license URL under the image on the page you can add the following code to the image.html5 template:
