Solved

Ask a New Question

Posted on 2009-07-09
4
497 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

751 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