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).
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
astraltangoAuthor Commented:
Ah, I've worked it out.  The only way I could work out how to add a sub-nav item, was via:


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:


Apologies if I wasn't clear enough.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.


I just read the comment for closing this. You should really at least give partial points to an assisted solution.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.