TwitterLinkedInBlog

Wednesday, April 22, 2009

SP2007 - How to retrieve text from an Enhanced rich text column

SPFieldMultiLineText sampleField = sampleListItem.Fields["Sample"] as SPFieldMultiLineText;
string sampleText = sampleField.GetFieldValueAsText(sampleListItem["Sample"]);

Saturday, April 18, 2009

SP2007 - EnableInheritance="True"

If you set Current Navigation to “Display the same navigation items as the parent site” and you don’t see the same navigation items as the parent site, you might need to add an EnableInheritance="True" attribute to the PublishingNavigation:PortalSiteMapDataSource as in this example:

<PublishingNavigation:PortalSiteMapDataSource ID="SiteMapDSWithHeadings" Runat="server"
    SiteMapProvider="CurrentNavSiteMapProvider"
    EnableViewState="true"
    StartFromCurrentNode="true"
    StartingNodeOffset="0"
    ShowStartingNode="false"
    TrimNonCurrentTypes="None"
    EnableInheritance="True"/>