Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Ask a New Question

Posted on 2009-07-09
4
Medium Priority
?
517 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
3 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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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. …
There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

824 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