I have a logic conumdrum which I would appreciate any suggestions or pointers over.
I have a CPT for camera lenses. The lens posts will have the same fields but some fields will have different field values depending on which camera it gets used on but it's the same actual lens. OK I duplicate the posts so there are say three posts for any specific lens and each contains the common data such as name and the specific data for a specific camera.
This is fine if the user searches by camera - they will get just the posts that are specific to that camera. My problems is if they search for the lens only they will get multiple posts for each lens.
In the latter case I can restrict the fields displayed to the ones specific to the lens only e.g.g it's name but that doesn't restrict the list of posts. I'll still get say three posts all the same.
Would I be right in thinking I should be splitting the common data fields from the camera specific in some way or using relationship fields. I've done a search for documentation but can only find a passing comment which assumes the reader knows the roles and use relationship fields.
Then in a case like this given that you're going to use M2M you wouldn't need to create the same lens for different cameras. The one lens can be related to many different cameras.
In this case when you filter for lens you will only get 1 lens.
Lets say you want to filter Lens for Sony and Olympus cameras. Only lens that are compatible with those 2 will show up. No duplicate lens won't show up because you've only created 1 of that type of lens and related it to both Sony and Olympus.
Please let me me know if this helps.
Thanks,
Shane