0

On my website, i have some products and some master products.

Each products depend on a master product, which can have multiple products under itself. There are 2 different content type.

In the product content type, master product is an Entity Reference.

I'm trying to filter my view to get all similar products : basically, i need a view to get all products that have the same tint has the current product.

The tricky part is that the tint is a field of the master product.

Does anyone has any part of an answer?

Thanks!

1 Answer 1

0

If you are displaying all similar products on another node page - load the master node by adding an entity reference relationship to your view. I don't think you can compare values of two different nodes in a view. So, Use the view PHP module to write a filter script that can compare both the fields from the nodes.

Check out this 'Question' on using the view PHP module

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.