Showing posts with label Habitat. Show all posts
Showing posts with label Habitat. Show all posts

Monday, 1 May 2017

Sitecore Habitat and Fortis

If you don't know what is Habitat yet, please have a look at its Github: https://github.com/Sitecore/Habitat.

By default, Habitat does not use any mapping tool (such as Glass Mapper, Fortis, or the emerging Synthesis) so keep it simple however it does not mean that Sitecore doesn't prefer using one of those.

I have created a fork of the original Habitat solution and made it Fortis-enabled. A Fortis.Foundation module is added to the foundation layer which is responsible for the registration of Fortis and the code-generation of the Fortis model based on Unicorn.

You can find the repo here: https://github.com/codingdennis/Habitat/tree/feature/fortis-integration.

[Updated 2017-05-03] I have also updated this Habitat to support Sitecore 8.2 Update 3, check https://github.com/codingdennis/Habitat/tree/feature/fortis-integration-sc82u3 if required.

Happy Habitating!

Friday, 6 January 2017

Sitecore Habitat Transformer

Sitecore Habitat is a open source Sitecore demo website project that implements the Helix design concepts.

The way the project is designed/developed is recommended by Sitecore these days for building a new Sitecore website. The demo site contains many builtin features and a foundation that can be used in our own project.

The immediate headache(???) when beginning using Habitat as a base of your own project is that it has many Sitecore item paths, namespaces, etc stored under Habitat (path or namespaces) and people usually do a file-based find-and-replace to replace the Habitat string with a custom string for their own project. However by doing this might cause some issues which needs to be addressed manually afterwards.

To make life easier I have created a Powershell script that does this and it can be downloaded from https://github.com/codingdennis/SitecoreHabitatTransformer.

Please see the Readme there for more information on how to use it.