Skip to content

Instantly share code, notes, and snippets.

@kamsar
kamsar / SwitchMasterToWeb.config
Last active November 26, 2024 08:14
Sitecore 8 Patched SwitchMasterToWeb.config
<?xml version="1.0" encoding="utf-8" ?>
<!--
Purpose: This include file simplifies the setup of Sitecore CD instances by removing any references to the Master database from Sitecore configuration files.
This include file should be used only on CD servers.
Important: Include files are applied in alphabetical order. Therefore this include file cannot remove any references to the Master database
that are defined in include files that are applied later. In this situation, you must rename this include file so that it is applied after
any other include files that contain references to "master" database.
@richardszalay
richardszalay / SitecoreMvcEditFrame.cs
Last active April 13, 2017 04:32
Sitecore MVC EditFrame implementation
using Sitecore.Mvc.Helpers;
using Sitecore.Web.UI.WebControls;
using System;
using System.IO;
using System.Web.UI;
public static class SitecoreHelperExtensions
{
/// <summary>
/// Creates a scoped EditFrame