Posts

Showing posts from July, 2019

Sitecore 9.2 Installation using SIF Step by step

Image
To setup sitecore 9.2 istance on your system first download required package from https://dev.sitecore.net/Downloads/Sitecore_Experience_Platform/92/Sitecore_Experience_Platform_92_Initial_Release.aspx Download Package for XP Single and extract the downloaded package. If you want to place all zip files   in some other location then just place all the extracted zip file to particular location.         I placed all zip files to some other location.   D:\SharjeelsWork\Projects\Sitecore\9.2\SIF After extraction you will get few zip files. Now unzip XP0 Configuration files in same location. Once you extract this zip file, you will get XP0-SingleDeveloper.ps1 and other required files. Delete “XP0 Configuration files 9.2.0 rev. 002893.zip” and “Sitecore 9.2.0 rev. 002893 (WDP XP0 packages).zip” files from installation folder as they are no longer needed. This is how it should look like before procee...

Sitecore Custom Cache implementation

To maintain some value in cache we can customize Sitecore cache by using Sitecore.Caching name space and classes. As Sitecore.Caching.CustomCache is an abstract class, you cannot directly instantiate it, but you can inherit from it. namespace Rbm.Feature.SharjeelsWork.CacheManager {     public class RbmCustomCache : Sitecore.Caching.CustomCache     {         public RbmCustomCache( string name, long maxSize) : base (name, maxSize)         {         }         new public void SetString( string key, string value)         {             base .SetString(key, value);         }         new public string GetString( string k...

Access Form items and fields from Forms database in Sitecore 9.x

To access sitecore form items you need to work with Form data provider class which needs data service instance from Service Locator. With the help of Form data provider which is a class of Sitecore.ExperienceForms.Data namespace. Here I am writing code sample which I used in my requirement of accessing or validation some form entries from form data base. Initialize Form data provider. private  IFormDataProvider FormDataProviders = (IFormDataProvider)ServiceLocator.ServiceProvider.GetService( typeof (IFormDataProvider)); //Model to return result public   class   FormDataDetail     {          public   bool  IsUserValid {  get ;  set ; }          public  DateTime SubscriptionDate {  get ;  set ; }     } //Code to access form entries for email and subscription date public  FormDataDetail GetDataToValid...