Sitecore Basic Project (Evolo)


Today I am sharing a project which is created by me while learning Sitecore. I converted the static page template into a dynamic page using Sitecore. The project is created with Sitecore MVC. It only uses View renderings, no Controller rendering is used in this project for simplicity. It also uses some of the best practices used in development with Sitecore like only use of item IDs to access items instead of paths, all the IDs are stored in a separate .cs file so that modification of IDs is simple, using Sitecore.Context.Database.GetItem instead of hardcoding the Database name and many more. I used the Crawling the tree approach to fetch the children's items and also used the Data Source approach to fetch the children. I also used MVC models for all the components. I also tried to use Dictionary at some places.


Some items are still hardcoded and are not connected with Sitecore like Forms, Maps, and some other small components. You can install the package in your Sitecore Instance using Installation Wizard. The package is provided in the GitHub repository. And the code part is provided in the EvoloBestPractice folder in the same repository.

Explore it more by making changes and learning Sitecore. Also do not forget to star and fork the repository.



References




Thank You for Reading, Happy Coding 🤗
Chirag Goel

I am a developer, likes to work on different future technologies.

Post a Comment (0)
Previous Post Next Post