• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 356
  • Last Modified:

How do I add a view as a sub nav item?

I have a view that I am using as a Photo Gallery.  Currently, I have the view set up as a page, and I have manually added that page to the navigation as a sub-nav item.

The problem is, when I navigate through the navigation to the Photo Gallery nav item and click on that nav item, the page loses it's place in the navigation (ie.  When the sub-nav item is clicked, I want the navigation to remain expanded and the sub-nav item to remain selected).
0
astraltango
Asked:
astraltango
  • 3
2 Solutions
 
junipllcCommented:
I'm not 100% clear on what you mean, but I can take a guess...especially since I ran into a similar problem with one of my sites. This is what I'm (dangerously) assuming:

- you set up a View "display" as a Page, and set up the menu sub-item via the Views interface (not through the Menu settings page)
- you need the navigation to reflect which page you are viewing -- that is, when you view the View you want the navigation to show it as selected, and the parent expanded

If that's the case, then there is a class that should be automatically added to the menu item (class="active") that you should be able to style with CSS.

If I'm way off base, let me know and I'll try to help more.
0
 
astraltangoAuthor Commented:
Ah, I've worked it out.  The only way I could work out how to add a sub-nav item, was via:

admin/build/menu-customize/navigation/add

After you indicated that you could in fact add a sub-nav item through Views, I took another look and realised that once I added a root nav item through Views (Page Settings -> Normal menu entry), I could then move that nav item to a sub-nav location via:

admin/build/menu-customize/navigation

Apologies if I wasn't clear enough.
0
 
junipllcCommented:
Hi again,

So were you able to get it working properly? If not, let me know and I'll help more...

Drupal is a pretty amazing platform, with a pretty steep learning curve. Despite the power behind it, it's both simple and complicated at the same time, and I find there is almost always more than one way to accomplish your goals. Sometimes it's a blessing, sometimes it's a curse :)

No need to apologize, it's tough to verbalize what the goal really is sometimes.

Cheers,

Mike
0
 
junipllcCommented:
I just read the comment for closing this. You should really at least give partial points to an assisted solution.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now