Display Custom Image Attributes in Gallery
Permalink
Hello,
i have a simple gallery and would like to show the created custom attributes of the images here.
The standard attributes of the images I can use e.g.
<?php echo $image['thumbnailUrl']; ?>
to display them.
But I cannot access custom attributes this way.
In an older version of concrete5 I could access the loop <?php foreach ($images as $img): ?>
simply by ($img['attributes'][','myAttribut'])
access it. Unfortunately this does not work in version 8.5.2.
How can I read and display the attributes, does anyone have a hint?
best regards,
Daniel
i have a simple gallery and would like to show the created custom attributes of the images here.
The standard attributes of the images I can use e.g.
<?php echo $image['thumbnailUrl']; ?>
to display them.
But I cannot access custom attributes this way.
In an older version of concrete5 I could access the loop <?php foreach ($images as $img): ?>
simply by ($img['attributes'][','myAttribut'])
access it. Unfortunately this does not work in version 8.5.2.
How can I read and display the attributes, does anyone have a hint?
best regards,
Daniel
Is it a custom gallery o one from the marketplace?
If the marketplace which one is it?