This is a question related to this post.

I'm using Media 2.x to create an image field, called Background Images, in my custom content type. A user is able to upload multiple Background Images and then these are displayed as rendered files.

I'd like to wrap each Background Image in a link redirecting to another distinct page that will then use that same image by pulling it in from the URL along with the node it is associated with. From the post I linked to above, I saw that the Linked Field module was an option.

I've been able to configure by going to Structure > Content Types > [my_content_type] > Manage Display > Background Image > Link this field

where the destination I am asking it to go to is:


But I end up getting:


If I hard code the values, I can redirect to the page successfully, e.g. where field_movie_parent=1 and field_background_image_reference=1. I'm having trouble with how to dynamically generate the values and am wondering if this is even the right approach. Any thoughts or advice would be appreciated.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.