Posts

Sitecore View State Access Denied

Image
   Introduction: While trying to complete the URL Redirect manager Post I faced an issue and had spend around 2 to 3 hours figuring out the problem (You might have solved this much faster than me) . But just to give an Idea on what I did to get this solved, I am writing this post. When I Installed the package of " Constellation.Feature.Redirects " for (Sitecore 10.1.1) and published the same, I got couple of error for Dll (that will be covered in Sitecore Redirect manager Blog). When I successfully solved those, I started getting error for "View state" Description: The scenario is when you hit your URL for sitecore, you will be redirected to Identity server for Authentication (some people might receive this error message on Login itself). Once you put your login credentials you will be redirected to Home page to select Desktop, content Editor and so on (some might receive the error here). Once you click on Desktop you will then be free to select any thing, but mostl...

Sitecore Custom Item Not Found Page

Image
  Introduction  :  This article is about implementation of 404 page as an item within Sitecore. There are few things that need to modify to get optimistic result after creating 404 (Item Not Found) page in Sitecore. The implementation shown in this article is for education purpose. Readers are expected to implement them using all the best practices that are known to them. Who can read this Article? This article is for all the developer with basic knowledge of Sitecore with MVC. The developer should have installed sitecore and deployed the website. Description :  We will be implementing how to redirect to an Item in sitecore when the URL goes wrong. We will also consider effective measures that need to be taken in order to keep our website visible and rank good in Search Engine Optimization. We will first create an Item in Sitecore to handle the Item Not Found page. We will then talk through the missing elements that need to be implemented to successfully complete the...

Iterator Pattern

Basically It belong to the group of behavioural pattern. Iterator pattern is used to iterate over collection in sequential order. The implementation shown below is modified version of Iterator pattern. In the below implementation, you will have options to go to next or choose previous Item. Following classes will be seen in the Implementation. 1 - Interface Iterator 2 - Concrete Iterator 3 - Interface Collection 4 - Concrete Collection ----------------------------------------------------------------------------------------- 1 - Interface Iterator Class: using System.Collections.Generic; namespace IteratorPatternVersion1.Interface {  public interface IIterator<T> {        List<T> CollectionList { get; set; }       T First { get; }       T Next { get; }       T Previous { get; }       T CurrentItem { get; }       bool IsDone { get; }       void Incremen...