John's profileJohn West Blogs about Si...PhotosBlogLists Tools Help

Blog


    3/31/2009

    Handling HTTP 404 Page Not Found with Sitecore Guide Published

    Sitecore published a document that describes how to handle the HTTP 404 Page Not Found condition. I have updated my post that provides links to the best Sitecore documentation.

    3/27/2009

    Sitecore Membership Providers Documentation Published

    Sitecore published a document that describes how to implement ASP.NET Membership Providers. I have updated my post that provides links to the best Sitecore documentation.

    Sitecore Dynamic Links Documentation Published

    Sitecore published a document that describes how to work with Dynamic Links. I have updated my post that provides links to the best Sitecore documentation.

    3/4/2009

    Contributing to Sitecore Shared Source Projects Part II: Contribution Suggestions

    Here are the Sitecore Shared Source projects to which I have recently contributed:

    Here are some suggestions for Sitecore shared source contributions:

    • Use C#.
    • Use Resharper, Stylecop, Agent Smith, and Agent Johnson as described in this post.
    • Resolve all code validtion issues before checking in any file.
    • Keep line length below 80 characters when possible.
    • Include the URL of the shared source project in each source code file.
    • To make your code easier for other developers to read, avoid ternary expressions.
    • To make your code easier for other developers to read, fully qualify classes in namespaces other than System, at least on the first use of each class in each method.
    • To make your code easier for other developers to read, avoid use of the var keyword.
    • Use protected instead of private where possible.
    • Use namespaces within the Sitecore.Sharedsource namespace that correspond to system and Sitecore namespaces, such as Sitecore.Sharedsource.Web.UI.WebControls.
    • Create directories as required to check in files from directories within the Subversion Trunk folder that correspond to the namespace, such as /Web/UI/WebControls for files in the Sitecore.Sharedsource.Web.UI.WebControls namespace.
    • Place extension methods in classes named after the method plus the word "Extension" in folders named after the original class. For example, to extend the Sitecore.Sites.SiteContext class with a method named GetSomething(), create /Sites/SiteContext/GetSomethingExtension.cs containing the class Sitecore.Sharedsource.Sites.SiteContext.GetSomethingExtension containing the GetSomething() method. Use namespaces such as Sitecore.Sharedsource.SystemString for extensions to system classes. For example, to extend System.String with a method named GetSomething, create /SystemString/GetSomething.cs containing the class Sitecore.Sharedsource.SystemString.GetSomethingExtension containing the GetSomething() method.

    Also, I learned that to nest lists in the wiki, you indent with spacing. So:

     1. Item One.
      * Item One Bullet One.
    

    This post has some other Wiki formatting and shared source contribution suggestions.