Print Version Email Page Add to Favorites Comments Alert Me Add to My Links

Tuesday, September 30, 2008

Enable Drop Down menu in Top Navigation Bar of Non-Publishing SharePoint Sites

Introduction
The drop down menu in top Navigation Bar of SharePoint site, this feature is available out of the box in Publishing sites. But, sometimes we need to have the same on Non-Publishing site, for e.g.: Blank Site, Team Site, etc. To achieve this, we need to carry out the below steps.

Activate Navigation Feature
1. Execute the below command:
stsadm -o activatefeature -filename navigation\feature.xml –url -force
2. Reset IIS.

Modify Master Page
1. Open the SharePoint Site in SharePoint Designer 2007.
2. Navigate through the folder and open the default.master page.
3. Find the below code snippet:



4. Modify the code as below:


5. Find the below code snippet:


6. Modify the code as below:

7. Save the changes.

The Navigation will start appearing in the Site Settings page.
Click Navigation, adjust your navigation menu by adding Headings, Links and arrange them.
The drop down menu will start appearing on your SharePoint site now.

8 comments:

Anonymous said...

Hi, I have tested this and the main problem I see is that users can no longer break the inheritance for the top navigation bar. The navigation will always show from the site collection level down. Although it would be a worthwhile feature, users will still want the ability to control the navigation that appears along the top.

Nick said...

you save my day!

dtandukar said...

After doing this i lost my top link bar setting. How to i bring it back?

Nanddeep Nachan said...

Hello DT,
Yes right, this will happen.
Top Link Bar display is depend upon Navigation feature, which is absent on Non-Publishing site.

To enable Top Link Bar again, execute below command:
stsadm –o deactivatefeature –name Navigation –url [url-of-site]

Let me know, if this helps you.

Thanks,
Nanddeep

Anonymous said...

hi...I execute your command :stsadm -o activatefeature -filename navigation\feature.xml –url -force
but it says it cannot find the xml file...is there anything missing?

Anonymous said...

Hi Nandeep,

I have tried that, do not see Navigation under Site settings. What could be wrong?

Vishnu - sysfun said...

it worked for my friend

Anonymous said...

How do you run an stsadm command?

World Clock