Druapl 7 - I have a taxonomy vocabulary called ‘Destinations’ and an entity created called “accommodation”. The accommodation entity contains names of individual accommodations, to simplify, let’s use hotels. So:
Entity type: accommodation
- Hotel X - San Diego
- Hotel Y - Barcelona
- Hotel Z - Rome
What I want to do is create pages that show which accommodation is available in which city. So I need to create a page for each:
/san-diego/accommodation /barcelona/accommodation /rome/accommodation
I can do this by adding a custom page:
I have created a view but can’t quite get my head around how to use contextual filters and relationship to show only the hotels available at each accommodation page.
How will Drupal “know” that this page should show hotels in San Diego:
I understand contextual filters and relationships and use them all the time, but can’t figure out how to do this in the case.
What is the best way to create these pages and add the view?