Skip to content

Instantly share code, notes, and snippets.

View hermanussen's full-sized avatar

Robin Hermanussen hermanussen

View GitHub Profile
<cl:CdmFieldRenderer runat="server" ItemWrapper=<%# SomeItemWrapper %> FieldName="<%# SomeType.FIELD_SOME_FIELD %>" />
<cl:CdmFieldRenderer runat="server" Value=<%# () => SomeItemWrapper.SomeField %> />
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Sitecore.Web.UI.WebControls;
using System.Linq.Expressions;
using MyDomainModel;
using System.Text.RegularExpressions;
using System.Reflection;
<sitecore>
<sc.include file="/App_Config/Sitecore.config" />
</sitecore>
<sitecore>
<sc.variable name="dataFolder" value="C:\Inetpub\wwwroot\SitecoreWebsite\data\" />
<sc.variable name="mediaFolder" value="/upload" />
<sc.variable name="tempFolder" value="/temp" />
<sc.include file="/App_Config/Sitecore.config" />
</sitecore>
<!--<connectionStrings configSource="App_Config\ConnectionStrings.config" />-->
<connectionStrings>
<add name="core" connectionString="[insert_connection_string]" />
<add name="master" connectionString="[insert_connection_string]" />
<add name="web" connectionString="[insert_connection_string]" />
</connectionStrings>
<!-- MEDIA - CACHING ENABLED
Indicates if caching of media files is enabled.
Default value: true
-->
<setting name="Media.CachingEnabled" value="$(setting.Media.CachingEnabled)" />
<sc.variable name="setting.Media.CachingEnabled" value="true" />
<sitecore>
<sc.variable name="dataFolder" value="C:\Inetpub\wwwroot\SitecoreWebsite\data\" />
<sc.variable name="mediaFolder" value="/upload" />
<sc.variable name="tempFolder" value="/temp" />
<sc.variable name="setting.WelcomeTitle" value="Welcome to Sitecore - DEV" />
<sc.variable name="setting.Media.CachingEnabled" value="false" />
<sc.variable name="sites.website.database" value="master" />
<sc.include file="/App_Config/Sitecore.config" />
</sitecore>
<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Import Namespace="System.Linq" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="Sitecore.Data.Items" %>
<script runat="server">
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
if (!IsPostBack)