Skip to content

Instantly share code, notes, and snippets.


Kim Gunnarsson kimgunnarsson

View GitHub Profile
View staticserver.js
var express = require("express"),
open = require('open'),
app = express(),
host = 'ENTER HOST IP';
if(process.argv.length > 2) {
port = parseInt(process.argv[2]);
kimgunnarsson / PageDataUIDescriptor.cs
Created Jan 9, 2015
EPiServer UI Descriptor to set DefaultView to All Properties View
View PageDataUIDescriptor.cs
using EPiServer.Shell;
namespace Meridium.UIDescriptors
public class PageDataUIDescriptor: UIDescriptor<PageData>
public BasePageUIDescriptor()
DefaultView = CmsViewNames.AllPropertiesView;
View .gitconfig
co = checkout
ci = commit
st = status
log1 = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lg1 = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
exclude = !sh -c 'echo "$1" >> .git/info/exclude'
kimgunnarsson / FindProperty.cs
Last active Aug 29, 2015
Code for using page properties as Dynamic Properties in EPiServer and retrieve their values up the chain. Code is provided as is. If you use it, you might consider doing some nice null- and empty checks.
View FindProperty.cs
using EPiServer;
using EPiServer.Core;
using EPiServer.ServiceLocation;
namespace Core.Properties
public static class PropertyFinder
public static T FindProperty<T>(PageData currentPage, string propertyName)