Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By computerbarry on
Hi all
I have a content type collecting data for jobs, general text fields and so on. I have a image field which can accept up to 10 images per job. How do I add a taxonomy field so I can reference these images from a view and display the images on a different, separate page based on the taxonomy tag. Is this possible?
I know I can add a separate taxonomy field to the content type, though how do I only add it to the image field itself?
Thanks,
Barry
Comments
You could use the field
You could use the field collection module, make a field collection of an image and taxonomy term.
Thanks nevets.
Thanks nevets.
My first time using field collection. Before I download and give this a go, couple of questions:
And do you use this module yourself?
Just want to get an understanding, cheers.
Barry
The more you learn.... the more you learn there is more to learn.
The only way to do what you
The only way to do what you want is to "group" the fields, the four methods I know of are
Yes, you would need to delete you existing image field.
I have used the module myself, though not that often.
Thanks for the detailed
Thanks for the detailed information.
I'm going to give no.2 a try and see how it goes, will report back once everything is setup.
Barry
The more you learn.... the more you learn there is more to learn.
Ok, I now have a field
Ok, I now have a field collection, called Image collection.
Within this Image Collection I have:
- Job Photo (image)
- Taxonomy Photo (term reference)
Seems to work ok, letting me add multiple images and terms for each image.
What I don't understand is, the taxonomy part...
Example of taxonomy urls:
photo-gallery/fencing
photo-gallery/paving
But. Nothing shows on the pages besides a message:
Any ideas what I'm doing wrong?
Do I need to setup something else for the taxonomy to work?
Thanks, Barry
The more you learn.... the more you learn there is more to learn.