When you develop a Sitecore web application, you need to follow best practices to avoid code refactor/ potential regression issues. There are plenty of best practices to implement, I mentioned here few for you guys…

  1. Always switch to Standard layout when build the page in experience editor as Sitecore adds rendering controls to Final layout by default so site will not function as expected for multi-lingual.
  2. Always re-commended to use Begin Rendering link over simple @Model.Link.Url
    • Model.Link.Url is not editable in experience editor
    • Model.Link.Url causes run time failure for null values
      • But Rendering Link overcome above mentioned issues
  3. Better to configure allowed controls on placeholder settings so you can easily add components on design mode and restrict unwanted controls
  4. Always configure token values on standard values of content templates/page templates ($name, $parent)
  5. Be careful with HTML caching(a specially varybydata when you use same rendering for multiple times on the same).
  6. Set the multi-Site context for experience editor and page preview
  7. Always recommend to use base templates for Site pages and content so that you can easily configure workflows and any site specific fields that can applied site level
  8. Configure bucket url’s to eliminate the clumsy and unreadable url’s
  9. TDS configuration:
    • Master project: Templates, Layouts and Renderings
    • Core Project: Settings, System related data like personalization rule definitions and roles
    • Content project :  Content(repository), pages, Media library

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Sitecore

Sitecore default pipelines

Sitecore has set of pre-defined pipelines which will execute once you entered url. You can trigger any actions before or after pipeline execution. You can write custom pipelines as .. After: <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">     <sitecore>         <pipelines> Read more…