Posts

Showing posts from June, 2023

Sitecore 10 - Containers and Docker

Image
Here I'll explain you some basic concepts related to containers and docker. If you look at the above diagram. you will get the basic understanding about the infrastructure requirements for Virtual machine setups. Don't get it ? Let me explain you. Virtual Machines: As per the above diagram it shows where each virtual machine has its own guest operating system which runs on top of the hosting infrastructure operating system. Hypervisor is the software used for creating virtual machines. Extra operating system per VM setup is obviously requires more space and load on Infrastructure. VM provides the hardware level process isolation where each applications run independently on virtual machines. Container:  Containers provide a lightweight and isolated runtime environment that encapsulates all the necessary components and dependencies required to run the applications. They uses host Operating system and does not need a separate OS. Containers provide OS level process isolation to r...

Sitecore 9 - Dynamic Placeholders

Image
Dynamic placeholders are useful when you want to repeat the same placeholder with different renderings/data sources.  Let's first understand the concept. Let's assume you want to use a placeholder with 2 different component on same page. I am going to create the Items based on below details. I am following the basic details, which is needed to create dynamic placeholders. - Create a Placeholder in your view.cshtml file @Sitecore().Placeholder("content-row-2-col") and publish it. - Create Rendering for your Component (component name: 2 Column Component) and publish it. - Create placeholder settings Item (settings name: 2 Column Component PS Settings) for your placeholder (placeholder key: "content-row-2-col") - Add 2 Column Component in your Placeholder Settings Allowed Controls. and publish it. - Open your page in Experience Editor - Click inside main-content placeholder >> Add Here >> Select 2 Column Component - Add data sources for Image tile...