I'm using the https://www.drupal.org/project/views_field_view module on my Drupal 8 installation, and my current setup consists of:
- Products (Content Type - has an entity reference to the Product Availability taxonomy)
- Product Availability (Taxonomy)
- All Products (View - with the Product Availability view as a field)
- Product Availability (View)
Now, for each product displayed on my Products view I'd like to show the 'Product Availability' view fields, only for that product. For example, Product A might have the availability 1 and 2, whilst Product B may have only the availability 3. So I only want to show the availability for each product. I'm not sure how I'm supposed to set up a contextual filter for this, or if even that's the right way of doing this.
I somehow need to pass reference to my child view, Product Availability, the node ID of the product I would imagine.
Any suggestions?
EDIT: I've managed to get the result I wanted by going at this in a bit of a backward way. Instead of trying to configure the filter at the level of each product, I've set it up to be on the level of the Product Availability content type. Obviously this isn't as user-friendly, as to relate a 'Product Availability' to a 'Product' this way, you'll need to go into the 'Product Availability' content type and then select the products individually.