0

This is the kind of planning-stage question that I tie myself up in knots with...

A film site has main nav headings for Comedy, Fantasy, Kids etc. Each menu item displays a listing View of content type 'Film' tagged with the relevant taxonomy terms.

For example, 'Harry Potter' film is tagged as Fantasy and Kids, and appears on both listing pages.

If the user goes to the Fantasy section and clicks on 'Harry Potter' to view the full node, it needs to appear within the Fantasy section.

To achieve this, I am thinking of using another View to display the node content in the correct section (so the user never gets to the actual node). Or maybe I can do something with Panels. Or perhaps some kind of dynamic menu management?

I just have that familiar feeling that there has to be a cleaner way with Drupal?

1

You can do this pretty easily with views...just build a view with different page or block displays that filters nodes by the different tags (a.k.a. Taxonomy Terms). You can manually build a menu that provides links to the different pages that correspond to each tag.

| improve this answer | |
  • Thanks. I can build the listing views and menu, but don't know how to make the film node display in multiple places. Eg. if the user selects a film under 'Fantasy' menu, that parent menu item remains selected. If the user selects the same film but from 'Kids' menu, that parent remains selected. So the user stays in the same site area and doesn't go to a single film display page. Hope this makes sense :) – pushka Aug 23 '11 at 21:31
  • IF you just want to keep the menu item highlighted, then your node doesn't need to be in two places. You should check into the active-trail functionality of your menus. It may already be there depending on what theme you're using. Check to see if the class "active-trail" shows up on the menu item after you are taken to the node page. Then it should just be some simple css styling. – user2014 Aug 23 '11 at 21:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.