SharePoint 2010 Web Content Management - The Developer Story


Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • Wat doe ik? Oplossingen bedenken en ontwikkelen Adviseren Kennis delenExpertise SharePoint 2010 WCM SharePoint 2007 WCM Toegankelijkheid en webstandaarden Development + Application Lifecycle Management SharePointErvaring (1998) 12 jaar webdesign 7 jaar webdevelopment 6 jaar toegankelijkheid 4 jaar SharePoint 2007 1 jaar SharePoint 2010
  • Ontwikkelen van Internet-facing sites heeft ook een aantal uitdagingen ivm. anonymous access
  • Ontwikkelaars moeten denken aan veel verschillende aspecten. Soms zie je door de bomen het bos niet meer...
  • Demo in FirefoxGo to EditingInsert 2x Lorem IpsumLive PreviewInsert Image from ComputerShow contextual Image TabInsert CQWP in text
  • There are still *some* tables, but mostly divsQ: Waarvoor gebruikt SP2010 tables?
  • Show DIWUG Item StyleGo to Press ReleasesEdit Web PartChange Item Style to DIWUG: Page Content; Article Date; Article CategoryShow content-to-content Query String (click on category)Click on an articleShow related content: Field value on the current page
  • Create Content Type in browser
  • Go to archiveShow and explain the pager
  • CQWP vs. Managed Metadata- Multivalue only for single list queries- All other single value only!Veel partner opportunityimplementeren van rijke brandingseducatie van gebruikers
  • Demo in FirebugNightandday.master line 349
  • It works with CEWP with some JavaScript tweaking
  • More components in SP2010 = more places things can go wrongRich functionality but it means you have to test it all: not all of it has been used in Internet-facing websites yet
  • Quiz1. Met hoeveel verschillende acties kan je
  • SharePoint 2010 Web Content Management - The Developer Story

    1. 1. SharePoint 2010Web Content Management<br />The Developer Story<br />
    2. 2. 2<br />
    3. 3. Agenda<br />WCM Challenges in the past<br />WCM the 2010 way<br />Not-so-out-of-the-box stuff<br />Tips’N’Tricks<br />3<br />
    4. 4. 4<br /> Anonymous Enabled<br />
    5. 5. Customers’ challenges<br /><ul><li>No support for web standards
    6. 6. Confusing User Experience
    7. 7. No support for media
    8. 8. Expensive!</li></ul>5<br />
    9. 9. MOSS 2007 WCM developer challenges<br /><ul><li>No developer tools
    10. 10. Legacy HTML implementation
    11. 11. No control over HTML
    12. 12. Markup: mine vs. theirs</li></ul>6<br />
    13. 13. “Where should<br />I begin?”<br />7<br />
    14. 14. “...and then SharePoint became the center of the universe...”<br />8<br />
    15. 15. Good News<br />Everything you learned applies!<br />SharePoint Server 2010 For Internet Sites Standard<br />9<br />
    16. 16. If you are content editor<br />Great User Experience<br />Rich authoring<br />Ribbon<br />Rich Text Editor<br />Fluent UI<br />Live preview<br />Web Parts in content<br />Multilingual UI<br />Cross-browser!<br />Support for Assets & Rich Media<br />Managed Metadata<br />Web Analytics<br />10<br />
    17. 17. 11<br />SharePoint Server 2010 Rich Editing Experience<br />
    18. 18. If you are developer<br />Cleaner markup<br />Highly extensible UI<br />Improved Content Query Web Part<br />Support for Silverlight<br />Support for AJAX<br />New theming engine<br />12<br />
    19. 19. Content Query Web Part 2010<br />Slots<br />Content-to-content<br />Renders div’s by default<br />Still no paging<br />at least not out of the box ;-)<br />13<br />
    20. 20. 14<br />Content Query Web Part new capabilities<br />
    21. 21. Thenot-so-out-of-the-boxstuff<br />15<br />
    22. 22. CKS:DEV<br />What’s there for Publishing:<br />Import Content Type<br />Create Page Layout<br />Explore Publishing Pages<br />Explore Master Pages Gallery<br />Explore Style Library<br />Coming soon:<br />Export Publishing Page<br />Cancel Adding SharePoint Items<br />Activate Selected Features<br />…and more<br />Set of SharePoint productivity tools for developers<br />Fully integrated with Visual Studio 2010 SharePoint Developer Tools<br />Free & Open source<br />Community driven<br />Get it now from<br />16<br />
    23. 23. 17<br />CKS:DEV features for WCM solutions<br />
    24. 24. SubclassedContent Query Web Part<br />New functionality<br />Support for Paging<br />Custom XSLT parameters and functions<br />EXSLT<br />Calling into SharePoint Object Model<br />Easy access to hidden properties<br />Setting custom XSLT<br />Overriding Query<br />Toggling Cache<br />More info:<br />18<br />
    25. 25. 19<br />CQWP show off: Cool Pager with Mavention Content Query Web Part<br />
    26. 26. 10<br />SharePoint WCM<br />Tips’N’Tricks<br />20<br />
    27. 27. Tip #1: Be careful what you promise<br />Well-formed XHTML vs. Valid XHTML<br />CQWP vs. Managed Metadata<br />No more support for IE6!<br />Custom vs. out-of-the-box<br />Out of the box: solid foundation<br />Still lots of partner opportunity<br />21<br />
    28. 28. Tip #2: UseSimpleRendering<br />SharePoint 2007 menu as tables<br />UseSimpleRendering<br />New property on the SharePoint 2010 menu control<br />Renders menu as a nested unordered list<br /><SharePoint:AspMenuUseSimpleRendering="true"runat="server"/><br />22<br />
    29. 29. Tip #3: Make branding available in RTE<br />RichHtmlField attributes<br />StyleSheet – point to your CSS file<br />PrefixStyleSheet – create custom prefix to suppress standard branding<br />Doesn’t work with CEWP!<br /><PublishingWebControls:RichHtmlFieldFieldName="PublishingPageContent“StyleSheet="<% $SPUrl:~sitecollection/Style Library/CSS/styles.css %>"PrefixStyleSheet="m-“HasInitialFocus="True“MinimumEditHeight="400px"DisableInputFieldLabel="true"runat="server"></PublishingWebControls:RichHtmlField><br />23<br />
    30. 30. Tip #4: Test anonymous ASAP<br />Same as in MOSS 2007 but now even more important<br />Requires extra attention<br />SharePoint LINQ<br />Silverlight OM<br />Hierarchical titles<br /><br />Body ID’s<br /><br />24<br />
    31. 31. Tip #5: Unlock Client OM for anonymous<br />$wa = Get-SPWebApplication -Identity "http://diwug"<br />$wa.ClientCallableSettings.AnonymousRestrictedTypes.Remove([Microsoft.SharePoint.SPList], "GetItems")<br />$wa.Update()<br />Keep in mind: Decreases security!<br />More info:<br />25<br />
    32. 32. Tip #6: Mind new inheritance model<br />In SharePoint 2007 <FieldRefs /> to inherit all fields<br />In SharePoint 2010 Inherits=“TRUE”<br />FieldRefs not requiredanymore<br />26<br />
    33. 33. Tip #7: Use conditional content<br />Leverage conditional controls to optimize page output<br />Use conditional processing instead of conditional rendering<br />More info:<br />27<br />
    34. 34. Tip #8: Set the defaults<br />DefaultPageLayout: new in SharePoint Server 2010 Publishing Feature<br />Configures the default Page Layout used for one-click creating new Publishing Pages<br /><WebFeatures><br /><FeatureID="22A9EF51-737B-4ff2-9346-694633FE4416"><br /><PropertyKey="DefaultPageLayout"Value="~SiteCollection/_catalogs/masterpage/MyLayout.aspx"/><br /></Feature><br /></WebFeatures><br />Tip: Want to create pages even faster?<br />28<br />
    35. 35. Tip #9: Control your CSS<br />Introduced in SharePoint 2007<br />Allows you to register CSS file<br />New in SharePoint 2010: After property<br />Allows you to load your CSS after some other CSS<br /><SharePoint:CssRegistrationname="<% $SPUrl:~sitecollection/Style Library/myStyles.css %>"After="corev4.css"runat="server"/><br />29<br />
    36. 36. Tip #10: Disable SharePoint Designer<br />Not needed in production for Internet-facing websites<br />Disabling finally supported!<br />Configurable per:<br />Web Application<br />Site Collection<br />30<br />
    37. 37. Tip #11: Don’t use Pages in code<br />In MOSS 2007<br />Title depends on locale (Pages/Pagina’s/Seiten)<br />Same URL (Pages)<br />Except for German: Seiten<br />In SharePoint Server 2010 “fixed”<br />Both title and URL depend on locale<br />Retrieve dynamically<br />In code: PublishingWeb.DefaultPagesListName<br />In XML: $Resources:osrvcore,List_Pages_UrlName;<br /><PropertyKey="SearchCenterUrl"Value="~SiteCollection/nl/Search/$Resources:osrvcore,List_Pages_UrlName;"/><br />31<br />
    38. 38. Tip #12: Disable Presence<br />Supported!<br />No more dodgy JS<br />Per Web Application setting<br />32<br />
    39. 39. Tip #13: Hide Ribbon from anonymous users<br />Conditional processing and Conditional rendering don’t work<br />What you need to do<br />Hide in CSS<br /><Mavention:SecurityTrimmedControlRenderingAuthenticationRestriction=“AnonymousUsersOnly”runat=“server”><br /><styletype=“text/css”><br />.ribbonbackground{ display: none; visibility: hidden; }<br /></style><br /></Mavention:SecurityTrimmedControlRendering><br />33<br />
    40. 40. Extra tip: Learn your tools<br />Great capabilities<br />Lots of new features<br />New way of thinking<br />It does pay back!<br />34<br />
    41. 41. Key takeaways<br />Many improvements for content editors and developers<br />New capabilities simplify building rich websites<br />Visual Studio 2010 SharePoint Developer Tools are your friend: take your time and learn them<br />Building Internet-facing sites is different: don’t underestimate it<br />35<br />
    42. 42.
    43. 43. Resources<br />Waldek Mastykarz – Innovation Matters<br /><br />Community Kit for SharePoint: Development Tools Edition<br /><br />SharePoint Developer Center<br /><br />Microsoft SharePoint Team Blog<br /><br />Microsoft Enterprise Content Management Team Blog<br /><br />Microsoft SharePoint Designer Team Blog<br /><br />37<br />