Posts

Showing posts from February, 2019

Setup First Sitecore Helix Example From Scratch (Blank solution)

Image
A quick walk through of Sitecore helix on how to setup a Sitecore website based on Helix        Architecture from scratch/blank solution        There is two solution to start with Helix:   a.   First to download the habitat demo site, cleanup and rename the project as per the requirement of the Project, and start working on the top up of the habitat.   b.    Second, create the solution from scratch means from blank solution.       I always preferred the second approach, because we can have full control of the solution and no need to understand the existing site logic and complexity.      So with the consideration of approach 2, here we are going to setup the site from scratch using Helix principle.            Hope you already have gone through the Sitecore helix principles, habitat documents, and training.    There was a lot of confusion regarding the Helix and Habitat terms, is it architecture? Principle? design? Sitecore accelera

Add images in Sitecore By C# Programmatically.

Image
Hi All, This is my first blog so i am little bit scared about that. the main purpose to write here whatever i learned i will be explained here so that any body come and take it. I am trying to put Each&Every exception whatever i faced during development. Recently i have done migrate some images so let's see how to add images in Sitecore by c#. say for example you have multiple images and you want upload all images in Sitecore node. so i would suggest for the best option to through the scheduler and create one function in our c# code. let's start so firstly we have add folder under media library to store image. and pick the folder id/path to add image. so for that we have to take care some point a. use correct path to read images from your local drive. b. use correct path to store in Sitecore. in below image you can see Blog folder where we are adding images. create a method to do that.. try             {                 string[] fileEntries = D