RE: Navigation in MOSS 2007 - Got it
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > RE: Navigation in MOSS 2007 - Got it




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    RE: Navigation in MOSS 2007 - Got it  
Mike Parris


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-25-07 12:17 PM

I have just stumbled over the cause. You need to check in the page, even if
you are the author of the page.

Mike

"Mike Parris" wrote:

> How do I create a navigation control in MOSS2007 that shows pages as well 
as
> sites?
>
> I have tried a PortalSiteMapDataSource bound to an aspmenu, but it only
> shows sites, no pages. Here's my code -
>
> < PublishingNavigation:PortalSiteMapDataSo
urce ID="GlobalNavDataSource1"
> Runat="server" SiteMapProvider="CombinedNavSiteMapProvider"
>     ShowStartingNode="false" StartFromCurrentNode="true"
> StartingNodeOffset="0" TrimNonCurrentTypes="Heading"
>     TreatStartingNodeAsCurrent="true" />
> <SharePoint:AspMenu ID="GlobalNav1" Runat="server"
> DataSourceID="GlobalNavDataSource1" Orientation="Vertical"
>     StaticDisplayLevels="4" MaximumDynamicDisplayLevels="0"
> Font-Size="Smaller" Font-Names="Arial">
> </SharePoint:AspMenu>
>
>
>
> I have also tried, and this is the way I really want to go, building a use
r
> control based on the PortalSiteMapProvider.
> I have set the provider to include pages using -
> 	_provider.IncludePages = PortalSiteMapProvider.IncludeOption.Always;
> I am getting the child nodes using -
> 	SiteMapNodeCollection nodes =
> 		_provider.GetChildNodes(startingNode,
>                 Microsoft.SharePoint.Publishing.NodeTypes.All,
>                 Microsoft.SharePoint.Publishing.NodeTypes.All);
> However, the nodes collection only contains site objects, no pages.
>
> Are there any properties that I need to set to get page information?
>
>
>
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:29 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register