I am new to drupal, but have decent knowledge of WordPress & PHP. I am currently building a drupal site where I need to link two content types together and display them on the front end accordingly.
I have one content type called Vehicle Range
, which contains a list of Vehicle ranged (e.g. BMW 1 Series, BMW 3 Series)
I have another content type called Vehicle Models
, which lists the vehicle models (e.g. 1 Series 118i, 1 Series 118d, 3 Series 335d).
What I want to achieve is a menu that lists all of the Vehicle Ranges with the relevant models as dropdowns.
Example:
1 Series 3 Series
118i 335d
118d
I have created a reference between the two content types using the Entity Reference Module. The reference field is attached to the Range content type so that you tick all of the relevant models that belong to that range.
I am trying to create a view using this relationship, but my lack of experience with Drupal and views is causing me to fail. Whilst creating a view, the closest I can get is either a list of all of the models, displaying all of their fields, but they are not 'categorised' under the relevant range, or a list of the ranges with the model labels, which is close, but I need the full content / all of the fields attached to each model rather than just the label.
How can I make a view that will give me the output I need as shown in the example above using the two content types and reference field? Any help would be massively appreciated as I'm brand new to Drupal!