SharePoint Web Content Management - Lessons Learnt/top 5 tips

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    SharePoint Web Content Management - Lessons Learnt/top 5 tips - Presentation Transcript

    1. Lessons learnt: Building MOSS Content Management sites 16/10/2008 Chris O’Brien SharePoint MVP www.sharepointnutsandbolts.com
      • The WCM landscape
      • Key topics
        • Security
        • Optimisation
        • Accessibility
        • Deployment – Features vs. Content Deployment?
      • Chris’s top 5 WCM tips
      • Q & A
      What we’ll cover London, 16/10/2008 | SharePoint User Group – MOSS Web Content Management |
      • Very different to using SharePoint for collaboration
        • Typically emphasis is on ‘development’ not ‘customisation’
      • SharePoint provides great tools – but we generally build on them
      • Challenge of moving sites from Dev -> QA -> UAT -> Live
      London, 07/06/09 | SharePoint User Group – MOSS Web Content Management | The WCM landscape
      • Prevent end users accessing back-end pages
        • Use ‘Lockdown Feature’ for anonymous users
        • Allow authenticated users to read items but not view list pages
      • Consider dedicated authoring server within firewall
        • Allows internet servers to be more secure
      • Standard steps:
        • Validate input for SQL injection/cross-site scripting attacks, avoid storing passwords etc .
      London, 07/06/09 | SharePoint User Group – MOSS Web Content Management | Key topic - security
      • Many internet sites must meet accessibility guidelines
        • Standard SharePoint pages/controls not AA-compliant
        • Two ways to work around:
          • Build your own controls on top of SharePoint
          • Use ‘control adapters’ to correct the SharePoint controls
      • Accessibility Kit for SharePoint (AKS) can help
      London, 07/06/09 | SharePoint User Group – MOSS Web Content Management | Key topic - accessibility
      • Different forms of caching
        • Typically more complex for sites which aren’t anonymous only
      • Housekeeping
        • Removing core.js where possible
        • Removing ugly ‘name.dll’ message in IE7 http://support.microsoft.com/kb/931509
      Key topic – performance London, 07/06/09 | SharePoint User Group – MOSS Web Content Management |
    2. Key topic - deployment
      • Different approaches here:
        • Deploy functionality/files using Features
        • Deploy using Content Deployment
          • My ‘Content Deployment Wizard’ provides ability to deploy selected items only (e.g. page layouts)
      • My rule of thumb – use CD if single site collection, use Features if multiple
      • My blog has several articles on factors to consider
      London, 07/06/09 | SharePoint User Group – MOSS Web Content Management |
      • Andrew Connell
        • MSDN article: Prescriptive Guidance for WCM sites http://msdn.microsoft.com/en-us/library/cc879144.aspx
        • Book: SharePoint 2007 WCM Development (Wrox Press)
      • Accessibility Kit for SharePoint
        • http://aks.hisoftware.com
      • ‘ Optimising MOSS WCM sites for performance’
        • http://msdn.microsoft.com/en-us/library/bb727371.aspx
      Key resources London, 07/06/09 | SharePoint User Group – MOSS Web Content Management |
    3. Tips from the field Lessons learned
      • Implement HTML markup in user controls, not SPD
        • Faster development experience - no SPD pain
        • Page layout markup now in primary source control
        • Much simpler deployment of updates
      Implementation tip #1 London, 07/06/09 | SharePoint User Group – MOSS Web Content Management |
    4. Implementation tip #1 London, 07/06/09 | SharePoint User Group – MOSS Web Content Management | Markup in page layout in SPD: Markup in user control in Visual Studio:
      • Add custom virtual directory pointing to your web project files
        • Store user controls/page furniture files (e.g. image/XSL) here. Remove code files for non-dev environments
        • Faster development experience – no files to copy, no post-build events. Just save and F5!
        • Important if using tip #1 – don’t want to have to compile project for a HTML change
      Implementation tip #2 London, 07/06/09 | SharePoint User Group – MOSS Web Content Management |
    5. Implementation tip #2 London, 07/06/09 | SharePoint User Group – MOSS Web Content Management | Custom IIS virtual directory pointing at VS web project:
      • Make life easier for the site authors/admins
        • Reduce their stress and they’ll be on your side..
        • Consider providing custom tools if the ‘SharePoint way’ is not simple enough (e.g. user management)
        • If you use custom lists for site data, provide a link for authors to find them (e.g. using CustomAction)
        • Remember these people are rarely SharePoint gurus
      Implementation tip #3 London, 07/06/09 | SharePoint User Group – MOSS Web Content Management |
      • Custom links on Site Actions menu to back-end lists/custom screens:
      Implementation tip #3 London, 07/06/09 | SharePoint User Group – MOSS Web Content Management |
      • Custom ‘create user’ screen with detailed feedback of action:
      Implementation tip #3 London, 07/06/09 | SharePoint User Group – MOSS Web Content Management |
      • Plan for unexpected errors
        • Implement ‘friendly’ pages for:
          • 404/page not found
          • Unhandled errors
        • Typically use custom HTTP module to override default behaviour, checking for:
          • HttpContext.Current.Server.GetLastError()
          • HttpContext.Current.Response.StatusCode = 404
      Implementation tip #4 London, 07/06/09 | SharePoint User Group – MOSS Web Content Management |
    6. Implementation tip #4 London, 07/06/09 | SharePoint User Group – MOSS Web Content Management | Friendly error page for end users:
      • Plan for unexpected errors (ctd)
        • Implement e-mail notifications to developers for errors
        • Means an error cannot happen without the team being aware
        • We built this for production, but was even more useful in dev/testing
        • Implemented in same custom HTTP module as error page redirection
      Implementation tip #4 (ctd) London, 07/06/09 | SharePoint User Group – MOSS Web Content Management |
      • E-mail received by development team when an unhandled error occurs:
      Implementation tip #4 (ctd) London, 07/06/09 | SharePoint User Group – MOSS Web Content Management |
      • Plan for unexpected errors (ctd)
        • Implement proper tracing – it could save your project!
        • Provides ability to quickly locate bugs in your code
        • Trade off is time/effort to implement
        • Consider productivity tools such as ReSharper/CodeRush to lessen impact
      Implementation tip #4 (ctd) London, 07/06/09 | SharePoint User Group – MOSS Web Content Management |
      • Using tracing (shown here with DebugView) to quickly find bugs in code:
      Implementation tip #4 (ctd) London, 07/06/09 | SharePoint User Group – MOSS Web Content Management |
      • Design for flexibility
        • Use SP lists for values the client may wish to edit, but consider caching
          • My ‘Config Store’ solution on Codeplex does this ( www.codeplex.com/SPConfigStore )
        • Implement base page (custom master page class) to easily run code across the site
          • Examples on our site:
          • Check if trial user/when trial access ends
          • Check if accepted Terms & Conditions
          • Check has supplied their initial user profile info
          • Enforce use of HTTPS
      Implementation tip #5 London, 07/06/09 | SharePoint User Group – MOSS Web Content Management |
        • Using Config Store ( www.codeplex.com/SPConfigStore ) for configuration settings:
      Implementation tip #5 London, 07/06/09 | SharePoint User Group – MOSS Web Content Management |
      • Key topics - security, performance, accessibility (if your client requires it)
      • Chris’s top 5 WCM tips:
        • HTML markup in user controls, not SPD
        • Custom virtual directory for web files
        • Make life easy for authors/admins
        • Plan for errors
          • Friendly 404/error pages
          • Error e-mails for developers
          • Implement tracing
        • Design for flexibility
          • Provide switches for things which might change
      What was he talking about?? London, 07/06/09 | SharePoint User Group – MOSS Web Content Management |
    7. Contact: LinkedIn: http://www.linkedin.com/in/chrisobrienmvp Blog: www.sharepointnutsandbolts.com Thank you  Q & A

    + chrisobrienchrisobrien, 10 months ago

    custom

    1086 views, 1 favs, 0 embeds more stats

    My presentation to the UK SharePoint User Group (20 more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 1086
      • 1086 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 0
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories