SharePoint Blogs / SharePoint University
SharePoint Blogs and SharePoint University - all in one place!
Need SharePoint Training? Attend a SharePoint Bootcamp!

Please delete cookies related to sharepointblogs.com and sharepointu.com to resolve login issues!

HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007

This blog has moved.  Click here to open this post on my new blog.

Note: This is a repost of an article I posted while WSS 3.0 and MOSS 2007 were in the Beta stages.  The article was lost due to a server crash and many people have asked me to repost the article so I updated it with additional information, updates screen shots, and a handy little Windows Forms Application you can use to test these concepts out yourself, or build upon the code base to meet your own needs.  Enjoy!

In the previous version of SharePoint the QuickLaunch menu was controlled via the ONET.XML file and ASPX pages that made up a Site Definition, and making changes to the QuickLaunch menu was a cumbersome task at best.

The new version of SharePoint provides significant improvements to the navigational elements within a SharePoint site as well as the ability to change these elements programmatically! This article describes how to programmatically interact with the navigation elements via the WSS API in order to customize SharePoint site navigation. This article also investigates the security trimming capabilities of the SharePoint UI with respect to programmatically edited navigation links.

The first thing to note is that the objects used to programmatically customize navigation reside in the Microsoft.SharePoint.Navigation namespace. So, you’ll need to add a reference to the Microsoft.SharePoint.dll in your Visual Studio projects.

New item: Controlling navigation via the SPWeb object!

The SPWeb object has been enhanced in MOSS 2007 to support the ability to control the navigation of a SharePoint site programmatically! Let’s examine how this can be done.

The SPWeb object has a new property named Navigation that returns a SPNavigation object. This object allows developers to programmatically control the navigation of a SharePoint site.

Shared Navigation Settings

One of the new settings you may apply to a site’s navigation structure is whether or not the site uses the navigation menus from its parent site.

These examples assume you have created a top level site named test and a sub site named sharednav under the test top level site as well as a sub site named nosharednav under the test top level site. Once these sites have been created their hierarchy and URLs will look like this:

Before we get started, to help set the stage, here is what the navigation looks like in the test site.

Here is an example of how to set a sub site to use the navigation from its parent site.

SPSite sharedNavSite = new SPSite(“http://server/test/sharednav”);

SPWeb sharedNavWeb = sharedNavSite.OpenWeb();

sharedNavWeb.Navigation.UseShared = true;

The navigation for the sharednav site looks like this after the lines of code above have been run to set the property. Notice the breadcrumb trail at the top of the page uses the breadcrumb trail for the test top level site and the horizontal menu bar uses the items from the test top level site as well.

Here is an example of how to set a sub site not to use the navigation from a parent’s site.

SPSite noSharedNavSite = new SPSite(“http://server/test/nosharednav”);

SPWeb noSharedNavWeb = noSharedNavSite.OpenWeb();

noSharedNavWeb.Navigation.UseShared = false;

The navigation for the nosharednav site looks like this after the lines of code above have been run to set the property. Notice the breadcrumb trail at the top of the page uses the breadcrumb trail for the nosharednav sub site and the horizontal menu bar uses the items from the nosharednav sub site.

QuickLaunch Menu Items

The QuickLaunch navigation menu may also be accessed programmatically. You can create new menu items in the QuickLaunch navigation menu and remove them. You can also specify if the link is external to the site.

Here is how you add a menu item to the QuickLaunch navigation menu.

These QuickLaunch examples assume you have created a top level site named quicklaunch.

Once this top level site has been created its URL will look like this: http://server/quicklaunch

In this example we will add two links to the QuickLaunch menu for the quicklaunch top level site, one link will be internal and one will be external. The internal link will point to the Links list in the QuickLaunch site. The external link will point to the SharePoint Experts web site.

SPSite quickLaunchSite = new SPSite(“http://server/quicklaunch”);

SPWeb quickLaunchWeb = quickLaunchSite.OpenWeb();

SPNavigationNodeCollection quickLaunchNodes = quickLaunchWeb.Navigation.QuickLaunch;

SPNavigationNode internalMenuItem = new SPNavigationNode(“Links”, “Lists/Links/AllItems.aspx”, false);

quickLaunchNodes.AddAsFirst(internalMenuItem);

SPNavigationNode externalMenuItem = new SPNavigationNode(“SharePoint Experts”, “http://www.SharePointExperts.com”, true);

quickLaunchNodes.AddAsFirst(externalMenuItem);

quickLaunchWeb.Update();

*Note: If you do not call the Update() method on the SPWeb object you are working with, you will need to reset IIS to see your changes.

Here is what the quicklaunch Site Collection looks like after the above code has been executed:

Here is how you remove a menu item from the QuickLaunch navigation menu.

In this example we will remove the external link to the SharePoint Experts web site.

SPSite quickLaunchSite = new SPSite(“http://server/quicklaunch”);

SPWeb quickLaunchWeb = quickLaunchSite.OpenWeb();

SPNavigationNodeCollection quickLaunchNodes = quickLaunchWeb.Navigation.QuickLaunch;

quickLaunchNodes.Delete(quickLaunchNodes([0]));

quickLaunchWeb.Update();

Here is what the quicklaunch Site Collection looks like after the above code has been executed:

Taking the QuickLaunch menu one step further

The QuickLaunch menu is capable of displaying links in a grouped fashion, as you see in the screenshot above. For example, the Lists menu item in the screenshot above has two items under it – the Calendar and Tasks links. Creating your own grouped links can be done programmatically. This is once again a simple process that requires very little code.

Here is how you add grouped menu items to the QuickLaunch navigation menu.

In this example we will create a header link for the group of links and name it Administration. Then we will add two links under the Administration header link. The links will link to the Create and Site Settings pages for the quicklaunch Site Collection.

SPSite quickLaunchSite = new SPSite("http://" + serverTextBox.Text + "/quicklaunch");

SPWeb quickLaunchWeb = quickLaunchSite.OpenWeb();

SPNavigationNodeCollection quickLaunchNodes = quickLaunchWeb.Navigation.QuickLaunch;

SPNavigationNode internalMenuItem = new SPNavigationNode("Administration", "", false);

quickLaunchNodes.AddAsFirst(internalMenuItem);

SPNavigationNode externalSubMenuItem1 = new SPNavigationNode("Site Settings", quickLaunchWeb.Url + "/_layouts/settings.aspx", true);

quickLaunchNodes[0].Children.AddAsFirst(externalSubMenuItem1);

SPNavigationNode externalSubMenuItem2 = new SPNavigationNode("Create", quickLaunchWeb.Url + "/_layouts/create.aspx", true);

quickLaunchNodes[0].Children.AddAsFirst(externalSubMenuItem2);

quickLaunchWeb.Update();

Here is what the quicklaunch Site Collection looks like after the above code has been executed:

*Note: I added the Create and Site Settings links to the QuickLaunch bar to test the security trimmed aspects of the SharePoint UI. I wanted to see if SharePoint would hide these links from users who did not have access to see them because MOSS 2007 hides these links in the out of the box SharePoint UI from users who only have reader access.

I created a user named reader and granted the user read only access to the quicklaunch top level site. When I logged into the quicklaunch top level site with this user the links I just added to the QuickLaunch were available to the reader user! This is an important thing to note, and should be kept in mind when adding links to the QuickLaunch menu!

Here is what the quicklaunch Site Collection looked like when the reader user logged in:

Here is the screen you see when you click one of the links you do not have access to:

Top Navigation Menu Items

The top navigation menu may also be accessed programmatically. You can create new menu items in the top navigation menu navigation menu and remove them. You can also specify if the link is external to the site.

Here is how you add a menu item to the top navigation menu.

This example assumes you have created a top level site named topnavigation.

Once this Site Collection has been created its URLs will look like this: http://server/topnavigation

In this example we will add two links to the top navigation menu for the topnavigation top level site, one link will be internal and one will be external. The internal link will point to the Links list in the topnavigation site. The external link will point to the SharePoint Experts web site.

SPSite topNavigationSite = new SPSite(“http://server/topnavigation”);

SPWeb topNavigationWeb = topNavigationSite.OpenWeb();

SPNavigationNodeCollection topNavigationNodes = topNavigationWeb.Navigation.TopNavigationBar;

SPNavigationNode internalMenuItem = new SPNavigationNode(“Links”, “Lists/Links/AllItems.aspx”, false);

topNavigationNodes.AddAsFirst(internalMenuItem);

SPNavigationNode externalMenuItem = new SPNavigationNode(“SharePoint Experts”, “http://www.SharePointExperts.com”, true);

topNavigationNodes.AddAsFirst(externalMenuItem);

topNavigationWeb.Update();

Here is what the topnavigation top level site looks like after the above code has been executed:

Here is how you delete a menu item from the top navigation menu. In this example we will remove the Links link we just added to the top navigation menu for the topnavigation top level site.

SPSite topNavigationSite = new SPSite(“http://server/topnavigation”);

SPWeb topNavigationWeb = topNavigationSite.OpenWeb();

SPNavigationNodeCollection topNavigationNodes = topNavigationWeb.Navigation.TopNavigationBar;

topNavigationNodes.Delete(topNavigationNodes[0]);

topNavigationWeb.Update();

Here is what the topnavigation top level site looks like after the above code has been executed:

Taking the Top Navigation one step further

The top Navigation menu is capable of displaying dropdown menus that consist of multiple items. Adding additional sub menu items under the topmost item is a simple process and requires very little code.

Here is how you add a sub menu item to a top level menu item in the top navigation menu. In this example we will add a new top level menu item to the top navigation menu that has two sub menu items under it for the topnavigation top level site.

SPSite topNavigationSite = new SPSite(“http://server/topnavigation”);

SPWeb topNavigationWeb = topNavigationSite.OpenWeb();

SPNavigationNodeCollection topNavigationBarNodes =

topNavigationWeb.Navigation.TopNavigationBar;

SPNavigationNode headerMenuItem = new SPNavigationNode("SharePoint Sites", "", false);

topNavigationBarNodes.AddAsFirst(headerMenuItem);

SPNavigationNode externalSubMenuItem1 = new SPNavigationNode("SharePoint Experts", "http://www.SharePointExperts.com", true);

topNavigationBarNodes[0].Children.AddAsFirst(externalSubMenuItem1);

SPNavigationNode externalSubMenuItem2 = new SPNavigationNode("SharePoint University", "http://www.SharePointU.com", true);

topNavigationBarNodes[0].Children.AddAsFirst(externalSubMenuItem2);

topNavigationWeb.Update();

Here is what the topnavigation top level site looks like after the above code has been executed:

*Note: I was curious to see if the Top Navigation menu reacted the same way the QuickLaunch menu bar did regarding the security trimming of the UI. So I created an Administration Header link and two sub links for the Create and Site Settings pages.

I granted the reader user read only access to the topnavigation top level site and when I logged into the topnavigation top level site with this user the links I just added to the Top Navigation menu were available to the reader user! This is an important thing to note, and should be kept in mind when adding links to the Top Navigation menu!

Here is the code I used to add the links:

SPSite topNavigationSite = new SPSite(“http://server/topnavigation”);

SPWeb topNavigationWeb = topNavigationLaunchSite.OpenWeb();

SPNavigationNodeCollection topNavigationBarNodes =

topNavigationWeb.Navigation.TopNavigationBar;

SPNavigationNode headerMenuItem = new SPNavigationNode("Administration", "", false);

topNavigationBarNodes.AddAsFirst(headerMenuItem);

SPNavigationNode externalSubMenuItem1 = new SPNavigationNode("Site Settings", topNavigationWeb.Url + "/_layouts/settings.aspx", true);

topNavigationBarNodes[0].Children.AddAsFirst(externalSubMenuItem1);

SPNavigationNode externalSubMenuItem2 = new SPNavigationNode("Create", topNavigationWeb.Url + "/_layouts/create.aspx", true);

topNavigationBarNodes[0].Children.AddAsFirst(externalSubMenuItem2);

topNavigationWeb.Update();

Here is what the topnavigation top level site looked like when the administrator or the reader user user logged in; the links appear for both users.

I created a handy little Windows Forms Application you can use to test these concepts out yourself, or build upon the code base to meet your own needs. The application is easy to use, just enter the name of your SharePoint server, then click the buttons from top to bottom and follow along with this article. The application looks like this:

I hope this article and the application come in handy for you! Now, it’s time to go skiing! :)

 

This blog has moved.  Click here to commen on this post on my new blog.


Posted 12-26-2007 11:36 AM by tbaginski

Comments

HOW TO: Programmatically customize site navigation in WSS 3.0 and… wrote HOW TO: Programmatically customize site navigation in WSS 3.0 and…
on 12-26-2007 1:58 PM

Pingback from  HOW TO: Programmatically customize site navigation in WSS 3.0 and…

Windows Update » HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007 wrote Windows Update » HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 12-26-2007 3:18 PM

Pingback from  Windows Update » HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007

Links (12/27/2007) « Steve Pietrek’s SharePoint Stuff wrote Links (12/27/2007) « Steve Pietrek’s SharePoint Stuff
on 12-27-2007 7:35 PM

Pingback from  Links (12/27/2007) « Steve Pietrek’s SharePoint Stuff

SharePoint link love: 12-28-2007 at Virtual Generations wrote SharePoint link love: 12-28-2007 at Virtual Generations
on 12-28-2007 2:25 AM

Pingback from  SharePoint link love: 12-28-2007 at  Virtual Generations

Brian Carnes wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 12-28-2007 8:03 AM

Thanks for the screenshots and Windows app, Todd.  

For anyone copying and pasting code above, remember to dispose of the SPSite and SPWeb objects.

See Best Practices: Using Disposable Windows SharePoint Services Objects | msdn2.microsoft.com/.../aa973248.aspx

Programmatically customize site navigation in WSS 3.0 and MOSS 2007 « Tech Talk PT wrote Programmatically customize site navigation in WSS 3.0 and MOSS 2007 « Tech Talk PT
on 01-02-2008 5:57 AM

Pingback from  Programmatically customize site navigation in WSS 3.0 and MOSS 2007 « Tech Talk PT

Jorge Dieguez Blog wrote Código de ejemplo del libro “Inside Microsoft Windows SharePoint Services 3.0”
on 01-07-2008 12:30 PM

En noviembre del año pasado apareció en MSDN dos capítulos del libro "Inside Microsoft

Código de ejemplo del libro “Inside Microsoft Windows SharePoint Services 3.0” « Jorge Dieguez Blog wrote Código de ejemplo del libro “Inside Microsoft Windows SharePoint Services 3.0” « Jorge Dieguez Blog
on 01-07-2008 12:33 PM

Pingback from  Código de ejemplo del libro “Inside Microsoft Windows SharePoint Services 3.0” « Jorge Dieguez Blog

Jorge Dieguez Blog wrote Código de ejemplo del libro “Inside Microsoft Windows SharePoint Services 3.0”
on 01-07-2008 12:57 PM

En noviembre del año pasado apareció en MSDN dos capítulos del libro "Inside Microsoft

SharePoint, SharePoint and stuff wrote SharePoint Kaffeetasse 37
on 01-08-2008 3:47 AM

SharePoint und Reporting Services SharePoint and Reporting Services - Introduction SharePoint and Reporting

Mirrored Blogs wrote SharePoint Kaffeetasse 37
on 01-09-2008 7:09 PM

SharePoint und Reporting Services SharePoint and Reporting Services - Introduction SharePoint and Reporting

anothr user wrote Anothr feed track -Todd Baginski's SharePoint 2003 and MOSS 2007 Blog
on 01-10-2008 1:39 AM

One new subscriber from Anothr Alerts

Blog del CIIN wrote WSS 3.0 & MOSS: Recopilación de enlaces interesantes (XIII)
on 01-11-2008 1:31 PM

Como se suele decir, no hay mejor forma que empezar el año nuevo con un nuevo recopilatorio de enlaces

Gavin Barron wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 01-16-2008 5:48 PM

Thanks for that write up Todd, it was very useful!

There is one gotcha with respect to getting the drop down style top nav working, despite following you instructions very carefully I was getting all the navigation nodes placed horizontally in the nav bar :(

It was only after reading this: rollinmoss.blogspot.com/.../moss-installation-and-configuration.html that I realised the the "Office SharePoint Server Publishing Infrastructure" feature must be activated for the drop down navigation to work!

MinSOu wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 02-07-2008 9:31 AM

Great post ! Exactly what i'm looking for and a new rss in my sharepoint netvibes page ;-)

Kevin Barker wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 02-25-2008 8:50 AM

Is there a way to dynamically to create children underneath a child node?  For example, using the SharePoint Sites top nav menu item example above, would it be possible to have the SharePoint University or SharePoint Experts subitems flyout and contain their own subitems?

Preetha wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 04-29-2008 9:09 AM

Thanks for the article, it was useful. We are trying to use FBA, which i have implemented successfully. The next thing that needs to be done is that, after the user logs in, depending on the role that plays, we want to hide/ show some of the tabs or webparts. I gave the user higher privilage rights and tried to access the Navigation bar and change the isVisible = false (to hide it). While debugging it does seem to change the status from true to false, but does not take effect on the sharepoint site. The user that I am using to log in has Full Control.

I tried it in 2 ways :

OnLoggedIn

Created a Custom Logon Screen in the Layout Folder (Copy paste of the Login.aspx in Layout Folder)

Created a class library with the desired code OnLoggedIn method

Published the dll in the assembly and accessed it through the aspx.

Using a donet application

Created a dotnet application (CustomLogon.aspx, .cs, etc)

In the .cs file, on button click (submit), I check if the user is validate(Membership.ValidateUser).

If the user is valid, then I try to change isVisible attribute.

In both the cases it does seem to get changed in the debug mode, but has no effect on the screen.

Below is the code snippet for accessing the NavigationBar and setting the property.

SPNavigationNode headerMenuItem;

           SPNavigationNodeCollection topNavigationBarNodes;

           if (Membership.ValidateUser(TextBox1.Text, TextBox2.Text))

           {

               // Do Secure ID thing here.

               // Redirect the user to the requested page.

               FormsAuthentication.RedirectFromLoginPage(TextBox1.Text, CheckBox1.Checked);

               try

               {

                   // the calling user  

                   // Uses the SHAREPOINT\system creds with the SPUser's identity reference of user  

                   SPSecurity.RunWithElevatedPrivileges(delegate()

                   {

                       // Gets a new security context using SHAREPOINT\system    

                       using (SPSite site = new SPSite("my site address"))

                       {

                           using (SPWeb thisWeb = site.OpenWeb())

                           {

                               thisWeb.AllowUnsafeUpdates = true;

                               topNavigationBarNodes = thisWeb.Navigation.TopNavigationBar;

                               headerMenuItem = topNavigationBarNodes[1];

                               headerMenuItem.IsVisible = false;

                               headerMenuItem.Update();

                           }

                       }

                   });

               }

               catch (Exception ex)

               {

               }

Please correct me if i am doing something wrong. Awaiting your response.

Thanks and Regards,

Preetha

Naanas wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 05-17-2008 4:23 AM

Can you change the mysite navigation using your application?

Amar Galla's Weblog wrote Blogging again
on 06-02-2008 9:02 AM

Some of my old readers would have noticed that I've stopped blogging for quite a while now. Thing in

Scott wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 06-03-2008 1:44 PM

Thanks for the great post, Todd.

I've got a question regarding common navigation among multiple site collections in MOSS07.

My company has eight top-level site collections (hr, accounting, it, etc.). We've choosen to use site collections to allow better control of the databases as well as to ease backup/restore operations. We need for the top navigation to be the same for each site collection while the left nav is specific to the site collection. How can I create a common top navigation among site collections and still maintain state (i.e.: when I'm in the HR site collection, the HR top navigation item is shown as active).

Regards,

Scott

Nguyen Sinh Nguyen wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 06-15-2008 11:13 PM

Hi Todd,

Greate post !

I would like to ask you how to control event of top nav when user clicked on it so that show left nav item depend on top nav item. For example, I have 3 top nav items A, B, C. I want when clicked on A then left nav bar load some of groups item. To seminar for B, C.

I need your support so much. Thanks!

Best regards

SinhNguyen

Akbar wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 06-23-2008 6:51 AM

Could you please tell where to place this code???

should I make a user control and then write the code or just use a simple class file and what steps should I follow to deploy...

I will be very garetful if yuo could answere my qusetion I am very badly stuck

SF wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 07-05-2008 11:08 PM

Hi,

Is there a way to customize top navigation based on the subsites a user or group has access to.

Thank you,

.Sf

Ray wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 07-13-2008 6:16 PM

Yes thanks for the article. If I drop this bit of code in an InfoPath form in a document library on SP, can a client run the code only if they have sharepoint installed locally?

If so is there a web service I can reference to use the sharepoint navigation library remotely?

thanks in advance

ray

Sabine wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 08-12-2008 6:34 AM

I have the same problem!! I don't know where I can place this code!!! I use WSS 3.0.

Can you help me please???

Thanks

hi-tech blog » Blog Archive » Blogging again wrote hi-tech blog » Blog Archive » Blogging again
on 08-24-2008 7:19 AM

Pingback from  hi-tech blog  » Blog Archive   » Blogging again

Vidura wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 09-04-2008 6:16 AM

Hi to every one,

its really great by todd to have such a great topnav issue done,

i am facing with a similar problem but its 2 different links maintaining by my company as internal & external so, now i have top nav urls as http://server/topnav as internal & http://server.com/topnav as external and this topnavs have again subnavs as in dropdown as TODD mentioned like http://server/topnav/subnavs as internal and http://server.com/topnav/subnavs as external and so on....... so my problem is i cant able to get out of this rid... ....... i am trying from past 1week...... please help me regarding this

vidura wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 09-04-2008 6:30 AM

i forgot to tell that i will access this urls as differently like in my company intranet only internal urls will get with out asking for authentication, if i type external url like http://server.com/topnavs then authentications will ask so we need to get in with username & password. & internally their will be no authentication. so how can i access internally if i type internal url & by internet the external url....

Qassem wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 09-29-2008 9:53 AM
Nagendra Rao S.V wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 10-03-2008 1:38 AM

I am also facing the same issue what Preetha mentioned.In debug mode every thing is fine but in UI there wont be any change until i refresh the page.

Update me ASAP.

Ali wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 10-06-2008 12:32 PM

SPSite sharedNavSite = new SPSite(“http://server/test/sharednav”);

SPWeb sharedNavWeb = sharedNavSite.OpenWeb();

sharedNavWeb.Navigation.UseShared = true;

This thing doesn't work. I got this error

"Updates are currently disallowed on GET requests.  To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb.

"

Sealight wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 10-14-2008 11:09 PM

Can you show code with more Level (about 3 or 4 levels)?

e.g:

 Administrator

   -->Create

  --->--->one time

  --->--->two times

  -->Delete

    --->--->one time

  --->--->two times

I am also trying with more level but it didn't work.

sealight2007@gmail.com

Thanks

HP

MOSSBUDDY wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 10-24-2008 1:57 PM

Can we dynamically change the links for TOP Navigation bar depending on who is clicking those links i.e. different landing pages for ANONYMOUS user and different landing pages for Authenticated users. Basically changing the URL for the TOP MENU ITEMS can we do that?

SpittingCAML » Customising SharePoint/WSS Navigation through code wrote SpittingCAML » Customising SharePoint/WSS Navigation through code
on 10-31-2008 4:11 PM

Pingback from  SpittingCAML » Customising SharePoint/WSS Navigation through code

Ramesh Krishnan wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 11-04-2008 11:20 AM

This is great info. Thanks

I have a question though. How do I security trim the custom Navigation using the Navigation/SiteMapNode

I appreciate any help as I'm struck on the security

Thanks

Ramesh

Jorge Dieguez Blog wrote [SharePoint] Controlar la Navegación
on 11-30-2008 12:49 PM

SharePoint es un producto muy fácil de usar :-). El mapa de navegación se va creando de forma automática

[SharePoint] Controlar la Navegación « Jorge Dieguez Blog wrote [SharePoint] Controlar la Navegación « Jorge Dieguez Blog
on 11-30-2008 12:52 PM

Pingback from  [SharePoint] Controlar la Navegación « Jorge Dieguez Blog

jennyvera wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 01-09-2009 7:28 PM

good day! im a newbie in sharepoint but i was assigned to modify our dept. site. id like to ask if this is possible in wss 2.0? since at present this is what were using and can u pls. explain further where to put the above codes?

is there also other way to add items in navigational bars? since im not a programmer.

i hope someone will answer back.

thanks a lot.

Deepa wrote re: HOW TO: Programmatically customize site navigation in WSS 3.0 and MOSS 2007
on 01-18-2009 12:22 AM

How do we enable the publishing feature in WSS 3.0? i made the code change for the drop down menu in top link bar but all the sites (from quick launch) r now displayed in the top link bar...what am i doing wrong...any help will be appreciated

how to add a link in project workspace using PSI code | keyongtech wrote how to add a link in project workspace using PSI code | keyongtech
on 01-18-2009 10:27 AM

Pingback from  how to add a link in project workspace using PSI code | keyongtech

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
Need SharePoint Training? Attend a SharePoint Bootcamp!
Posts (c) their respective authors. Everything else (c) 2009 SharePoint Experts, Inc.