thomas Posted April 17 Posted April 17 Hi, I was wondering if it was possible to search in the custom field of multiple images? I am not really sure what I would expect for a result but I guess I am looking for a way to search for images by the description in a custom text field (it needs to hold a lot of text) and deep link to that very image. A quick test showed no result but maybe I am missing something? (I know a page reference would obviously be the better choice here but I kinda want/need the thumbnail display and visual sortability of the multiple image field) Thanks
BrendonKoz Posted April 18 Posted April 18 Heading out for the weekend, but I found your question interesting and, I'd imagine, potentially solvable - but I didn't find anything quickly. I was experimenting with the following, as a start (where "field-image" is the custom field template assigned to my image field, and "summary" is the field within that template I am searching within): $test = $pages->find('template=field-image,image.summary%=the'); As an alternative option, would you be able to adjust your solution to use (far shorter) tags for the linking/association aspect of your problem?
thomas Posted April 19 Author Posted April 19 Hi @BrendonKoz, thanks for reply! I tried exactly the same syntax but unfortunately that didn't work. I am working on a full text searchable archive of old special interest magazines where I just need an image per page, a large text field for the OCR'd text and maybe some tags. Meanwhile I stumbled upon the amazing plugin "RepeaterImages" by @Robin S which looks like it might just solve my problem 🙂 1
BrendonKoz Posted April 21 Posted April 21 Interestingly, since I think something in my example should work, I noticed that in my Setup > Templates admin page, my field-image template is reporting that it contains zero pages. I'm not sure if that should be the case since I do use images that have custom fields assigned. Maybe that's why I'm not getting any matches? I'm unsure. I would think Robin's module does something similar to the built-in core functionality, but if that works for you, I'm glad to hear it!
JamesFletcher Posted May 7 Posted May 7 Try using advanced filters or scripts; native search may be limited.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now