Hi there!
I want to make a gallery that features all images that are not already included in a textarea field.
Panel editors can upload files to a specific page and optionally can include them into a textarea field, which then renders the html into the template.
But then I want to create a gallery that includes all the images, that are not already included and rendered within the textarea.
So I get the textarea (text with images) and the gallery (list of images), but have no files displayed twice.
How would I do that?
β Go through the plain text of the textarea and check if there are any images, remember them and exclude them from the gallery loop?
β Or is there an existing method on file() to check if it is used within a specific field?
β Let the editors manually create the gallery using an additional textarea
β Any other ideas?
Thanks a lot!