Sitecore Swamp

Dive in the Sitecore Swamp

NAVIGATION - SEARCH

Sitecore Rocks connection error in Sitecore 9

Installed a fresh new Sitecore 9 environment, and trying to connection Sitecore via Sitecore Rocks. But, surprisingly, hit a connection error:

Checked the following permission things:

  • The app pool identity has permission to website folder
  • Visual Studio is running under Administrator

No resolved, until I found this article http://www.rockpapersitecore.com/2017/10/sitecore-rocks-with-sitecore-9/. Due to some security changes with Sitecore 9, Rocks will have a problem connecting to the instance. The solution is quite simple, just add the following config to web.config:

<location path="sitecore/admin">
  <system.web>
    <authorization>
      <deny users="?" />
      <allow users="*" />
    </authorization>
  </system.web>
</location>

Now it works!

Sitecore TDS Tips

  • Sync the templates/rendering first, then sync content
  • Sync and refresh until nothing comes up. TDS may not complete all the synchronizations in one sync, always refresh until no more new things are found. Sometimes, you maybe need to sync three or four times until everying in sync.
  • When you GLV (get latest version) from TFS, the TDS may not include all the items. When happens, It complains some errors about field missing. You can manually include the item into the project.
  • When you use TDS with GlassMapper CodeGen. After the TDS Sync, the code generated may not be perfect, errors sometimes. When it happens, simply right click the TDS project in VS solution explorer, and select Re-Generate Code for all items

Sitecore Best Practice - MVC

General

  • Use space in item name to provide better experience for content author, consider using Display Name for long item names
  • Do not use hyphen in any item name, and avoid using other special characters
  • Always create your own username in Sitecore and login with it
  • Do not use item name for display (rendering)

Template and Field

  • ​​All template should created under /content/templates/[Client Name]:
    • Page Template
      • ​​Represents a type of page​
      • Has layout and renderings preset in standard value​
      • Inherited from Page Base​
    • Component Template
      • Represents a view model of a rendering
      • Grouped in folder which reflects the co​ntroller na​​me
      • Inherited from Component Base​
    • Data Template
      • ​Any other template which is neither component nor page
      • Grouped in folder which reflects the purpose of usage​
      • Use meaningful name for Template and Field name, and avoid using  to provide better experience for content author
  • D​o not use hyphen in name 
  • Try to provide the source for a template field to reduce the effort for content author to lookup the entire content tree
  • Use item GUID as Sitecore field source to reduce the Sitecore refactoring effort​​​​
  • Assign the sortorder for template field section. Please see below the suggested sortorder:
    • Content/Data: 0 - 990 (not need to change)
    • Configuration: 1000 - 9900
    • Setting: 10000 -
  • Configure a meaningful icon for template
  • Configure the insert options in template standard value to reduce the effort for the content author to lookup the entire template tree ​
  • Use title and short description of field item to provide content author intructional text for that field.  

​​Layout and Rendering

  • Use View Rendering when the view model is Sitecore the template from context data source item with simple logic
  • Use Controller Rendering when the view model is built with  complex logic
  • Sitecore rendering should be grouped as epic under \content\layouts\rendering\[Client Name]\[Function Area]\[view]

TDS

  • [Client Name].TDS.Core 
    • core database items 
  • [Client Name].TDS.Master 
    • Layout items - /sitecore/Layout/Layouts/[Client Name] 
    • Rendering items- /sitecore/layout/Renderings/[Client Name] 
    • Templates items - /sitecore/templates/[Client Name] 
    • System items - /sitecore/System exclude the dictionary items 
  • [Client Name].TDS.Master.Content 
    • Content Items /sitecore/Content 
    • Dictionary items - /sitecore/System/Dictionary/[Client Name] ​
    • Media Items /sitecore/Media Library
  • ​Only add items into TDS if it's necessary

Configuration

  • ​Always patch the custom configuration in \App_Config\Include\custom\z.[configuration section].config​​.
  • To get the overview of Sitecore configuration, go to http://[sitename]/sitecore/admin/showconfig.aspx​​.
  • To get the overview of Sitecore cache, go to http://[sitename]/sitecore/admin/cache.aspx.

Sitecore Modules Compatibility Table

Here's awesome compatibility in between Sitecore versions (6.0 - 8.1) and major modules:

https://kb.sitecore.net/articles/541788



Sitecore admin password reset SQL

UPDATE [aspnet_Membership] SET Password='qOvF8m8F2IcWMvfOBjJYHmfLABc=' WHERE UserId IN (SELECT UserId FROM [aspnet_Users] WHERE UserName = 'sitecore\Admin') 

Upgrade to Sitecore 8 - When

Sitecore 8.1 has been released for a month now. If you are make yourself catch up with 6.x and they are going to out of mainstrean support by end of this year, and give another year for 7.1/7.2.

https://kb.sitecore.net/articles/641167
ProductInitial Release DateMainstream Support End DateExtended Support End DateSustaining Support End Date
Sitecore 8201531-Dec-201831-Dec-202131-Dec-2023
Sitecore 7.5201431-Dec-201731-Dec-202031-Dec-2022
Sitecore 7.2201431-Dec-201731-Dec-202031-Dec-2022
Sitecore 7.1201331-Dec-201631-Dec-201931-Dec-2021
Sitecore 7.0201331-Dec-201631-Dec-201931-Dec-2021
Sitecore 6.6201231-Dec-201531-Dec-201831-Dec-2020
Sitecore 6.5201130-Jun-201531-Dec-201731-Dec-2019
Sitecore 6.4201030-Jun-201531-Dec-201631-Dec-2018
Sitecore 6.3201030-Jun-201531-Dec-201631-Dec-2018
Sitecore 6.2200930-Jun-201531-Dec-201531-Dec-2017
Sitecore 6.1200930-Jun-201531-Dec-201531-Dec-2017
Sitecore 6.0200830-Jun-201530-Jun-201531-Dec-2016

What are the difference between the support phase:

Support TypeMainstream Support PhaseExtended Support PhaseSustaining Support Phase
Sitecore online documentation, knowledge base, and discussion forums access
Assistance with production incidents$
Security updates and fixes
-
Assistance with errors or unexpected behavior during installation or development
$-
Addressing product defects as hotfixes or patches
$-
Compatibility fixes for supported technology platforms
--
Timeline for each support phase, counted from the product’s general availability date
3 years6 years8 years

Legend: 


Included
$Contact regional office for support options
-Not available

Following the mainstream 

[TBC]

References
https://kb.sitecore.net/articles/641167 

Sitecore Accelerator - BRAINJOCKS SCORE

http://www.sitecore.net/learn/blogs/technical-blogs/john-west-sitecore-blog/posts/2015/02/evaluating-brainjocks-score-for-the-sitecore-aspnet-cms.aspx