Hello,
I have two content types: Service and Testimonial. I need to make the service add a testimonial automatically when a testimonial is added.
I want to relate these two. I installed the Entity Reference module, which helps. I added a field in Testimonial to refer to Service, and a field in Service to add testimonials to it.
The problem is that when someone submits a testimonial, and selects the service, the testimonial is not automatically added to that service.
So if I have service A, and testimonial B, when that testimonial is submitted, then it should be added to service A.
See an example of how I have it here.
Also, on the testimonials end, it gives the name of the service that it is assigned to. However, I'd love there to be a link back to that service, instead of just the name.
Any help would be greatly appreciated.
Comments
Views?
You generally only need the entity reference on 1 content type. In your case, you can have the testimonial have the entity reference field to the service. If you need to show related testimonials on a service, you can use Views with the EVA module to attach it to the service content.
If you really need bi-directional links, you might look at the Relation module.