As a novice in Drupal php & hooks, I have a question about content type. It is all about Drupal 7 with all up-to-date modules installed.
I have a content type for hotels (about 400 hotels). This content type has lots of fields. One of field is for image (unlimited values). I have user request for image slider in this content type based on images from another node (same content type). Some kind of “We also recommend..:”
My approach was with Advanced Link module where user can enter link to node and this link is then show as field in view (I have view to catch this). Programmatically, I’m then able to take nid from that link and extract image I want from node. But now I’m stuck with putting this image dynamically into this view. Is this approach good anyway?
In the beginning I was thinking about to add textarea field to content type and give a user ability to insert image from server (image that is already uploaded) with ckeditor uploader. Only problem with this approach is that all images names from hotel node are in special format (TH-023.jpg…), so they would be in big trouble to find image.
My second thought was to write a module to push image into some kind of field inside content type, immediately after user get link from advanced link field (in edit state of content type node). Is this possible?
Anyway, what would be the best way to do this?
Thanks in advance.