I have a page which lists articles, and if there are images uploaded via the images field for that page, a thumbnail is displayed next to the article headline.
However for a number of pages, I will be placing an existing image from another page in the tree into the body field. In these cases, is there anyway to check the body field's content for an image so I can display that in the article list?
Logic would be:
If the image field has one or more images uploaded { get first and display as thumbnail }
elseif the body field has one or more images placed from another page { use the first body image as the thumbnail }
else { omit thumbnail }
Anything I can try that would work as shown (or is there an alternative to consider)?
Thanks in advance!