I have created a photo album content type and a related photo content type. I can click on the photo album content and view all the referenced photo images with no problem. My goal now is to create a block that displays a slideshow of the photos referenced by the most recent album only. Photo content contains a required entity reference to the photo album.
I have created a block which pulls the most recent album only, and that works as expected, but I'm darned if I can figure out how to create the corresponding attachment slideshow view, I just can't figure out how to send the photo album node ID to the attachment. There are no arguments so I can't figure out how to pass one.
Any research suggestions would be more than welcome also. Thanks for any help.
I'm not really sure what you mean by "attachment", but this is how I would organize this.
To your album content type you can add node reference field referencing to photos. You can choose from various set of widgets (autocomplete, drop-down...). And for number of referenced nodes set unlimited...or some other number you want.
Then, when you create a block you have your album node id. Load that node and inside node object you'll find the array of related photos. So you can iterate trough that array, load photo nodes one by one and print they field values you need.
Added:
And if you want more then one view on the page you can embed additional view(s) from main view template file:
https://api.drupal.org/api/views/views.module/function/views_embed_view/7
Or, you can use:
https://api.drupal.org/api/views/views.module/function/views_get_view_result/7
and collect results, loop trough them.
You can easily pass parameters to both functions. Not sure why it's not mentioned in those function description, but check in the comments - they accept more than 2 parameters!
And I never used those attachments, sorry.