What happens is that only one tag appears in the ul, and also the name of the section appears as a tag.
I tried differents ways but nothing to do to make it correctly.
So, I guess $data is a section page. Does each image only have one tag? And do you want to get the tags of all images then? If so, you would have to loop through all the images and fetch the tags …
$data->image() only fetches the first image of that page …
yes, exactly that. Thank you. One more “snippet” I’ve to note in my list of snippets to andertand
May I abuse a little? and in my ul li, to add the good tag per image in their own class how could I do?
for now I just show images like this:
So, it works just great. Thank you for your Help.
About multiple tags, it still works, but add a , bettween tags, and in an html class it is not really good…
I’ll try to do the same maybe with a custom field in image but not tags, or maybe is there an easy way to limit the number of tags with the blueprint ?