Our existing website has a pretty clear menu structure:
Tours has a sub-menu of the different tours we offer, plus tour relevant items like Directions, Area Attractions, etc. So in the new site, if the viewer clicks on the Tours option in the menu (rather than clicking on one of the sub-menu items), I would like a page that lists the sub-menu links with a summary.
To do this, I created a view for a tour page that lists the node title and summary, and then used Views PHP module to sort the view by menu weight.
(process described here: http://tappetyclick.com/blog/2013/01/07/how-order-drupal-view-node-menu-...)
The problem comes with filtering. Each basic page node is listed, regardless of its parent item on the Main Menu. I need to filter the results for the Tour view so that only tour-relevant pages are listed. It's not a problem for "Animals" because I filter by their Content Type, but I'm not sure I should be creating a new Content type for each menu category.
So here are my options:
- Create a content type for each of the menu parent items- like I've already done for Animals. Drawback is several of extra Content types that are really just basic pages.
- Create a "Menu Categories" taxonomy and filter by that- drawback is that it's one more thing for content managers to specify every time they add content, when they're already specifying this by which menu item it is listed under
- Edit my Views PHP to only list "child menu" elements. Drawbacks are that this is a bigger learning curve- not sure how to . If I'm only editing the PHP in the view, it's probably worth doing, but if I have to edit code in the source files- then I would worry that things could get messy when I update my site.
Thoughts? In the meantime, I'll try to figure out how to accomplish this by changing the view's php field