Closed fritzmg closed 8 months ago
Looking at the code base, hasLink
will never be set because it is part of PageImage data but the template only receives data from the figure builder. So maybe we should change that to check for href
instead and drop hasLink
?
I have the same problem with my installation. I would be pleased if it could be fixed.
@contaoacademy can you verify that changing
if ($image['hasLink']):
to
if ($image['href'] ?? null):
works as intended?
The error message has disappeared.
However, a link was not displayed.
But I get:
Warning: Undefined array key "title"
Ok, to clarify I've now run a few more tests.
If I remove the title in the template as a test, I get an output.
To do this, the link must be set via the file manager. If I use the "Overwrite metadata" function, no link is output.
any updates on the topic? 🙃
I did not have time to look into it further unfortunately.
Fixed in dd9480a5ccf96cde8b9bee2a0f98037fb7ed81bc
Fixes the following warning(s):