Solved

Ask a New Question

Posted on 2009-07-09
4
449 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

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…
SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

763 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now