Solved

Ask a New Question

Posted on 2009-07-09
4
481 Views
Last Modified: 2012-05-07
In order to get drop down menu in top navigation link I did some modification in Master Page and now the tabs are sorted in alphabetical order. It seems to be a known problem linked with the change of:
SiteMapProvider="SPNavigationProvider" with SiteMapProvider="SPSiteMapProvider"

Someone sad that it should be written a new SPSiteMapProvider which aloud sorting.
Did someone write one?

Replace:
< asp:SiteMapDataSource
ShowStartingNode="False"
SiteMapProvider="SPNavigationProvider"
id="topSiteMap"
runat="server"
StartingNodeUrl="sid:1002" / >
 
with:
 
ShowStartingNode="True"
SiteMapProvider="SPSiteMapProvider"
id="topSiteMap"
runat="server" />
 
and set
 
StaticDisplayLevels="2"
MaximumDynamicDisplayLevels="1"

Open in new window

0
Comment
Question by:gregoireb
  • 2
4 Comments
 
LVL 15

Expert Comment

by:sharepointguru14
ID: 24814312
use the publishing top navigation and it gives you drop downs. You can create a publishing portal and then just pull the code from there.

Then in site settings you can click on navigation and then do sort manually rather than sort automatically. This will allow you to specify the order of the links rather than auto sort in abc order
0
 

Author Comment

by:gregoireb
ID: 24815141
Sorry, I didnt catch the idea.
I am in WSS 3.0 (so no MOSS), can you give me more details how I should implement what youve wrote above?
Thank you
0
 
LVL 15

Accepted Solution

by:
sharepointguru14 earned 500 total points
ID: 25407876
You have WSS  (not MOSS), so you have a limited number of providers to choose from. On the internet a lot of people are providing hacks that using the SPSiteMapProvider can be used to enable fly-out menus on the dropdown. However, that is a "hack" and is not the intent of the SPSiteMapProvider. In fact, WSS is not intended to work like a portal and that is one of the reasons you don't get these fly-outs "out of the box" like you do on MOSS. They want you to upgrade to MOSS to get this type of functionality (i.e.: portal functionality). Unfortunately, Microsoft takes away a lot of funcitonality in WSS so people will upgrade to MOSS (they aren't going to give much away for free :).

Thus, you are probably going to have to build your own site map provider to get this functionality. You can inherit from SPSiteMapProvider in your custom site map provider and provide some sorting code in your custom inherited class. Then, you have to add that class to your web.config file so that SharePoint knows you have a new provider.
Link here gets you started
http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/1187ab16-9a5d-450e-9832-17f9984d6621

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question