By FrenchGoldie on
I have two types of content "product" and "product specifications" that both have a text field with the product ID.
I would like my product page to display the relevant specifications, base on the product ID.
I have tried plenty of contextual filters/criterions and I can't figure it.
Can someone help ?
Comments
What is the "product" that
What is the "product" that has the ID?
In Drupal you use entity
In Drupal you use entity references. You would make an entity reference field on the Product Type that has a reference to entities of type Product Specfiications.
Contact me to contract me for D7 -> D10/11 migrations.
In addition to what Jaypan
In addition to what Jaypan said, you might want to only have the product ID on the product. That assumes "product specifications" is not freestanding: that is, assuming that it will always be linked to a product. This way you don't need to make sure that both fields have the same value. Given a "product specifications" you can get the product ID from the linked product.
Available for paid support, module development, migrations, consulting...