Skip to content

Instantly share code, notes, and snippets.


Luc Gosso LucGosso

View GitHub Profile
View CustomXhtmlStringEditorDescriptor.cs
using EPiServer.Core;
using EPiServer.Shell.ObjectEditing.EditorDescriptors;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Gosso.Episerver.Business.EditorDescriptors
LucGosso / FotoWare.PlugIns.Episerver.nuspec
Created Jun 5, 2019
Use build tasks and nuspec to build Episerver addon in visual studio ( )
View FotoWare.PlugIns.Episerver.nuspec
<?xml version="1.0"?>
<package xmlns="">
<title>Episerver Addon integrates Fotoware DAM with Episerver CMS and Commerce</title>
LucGosso / tracking.js
Last active Oct 16, 2019
Google analytics Gist tracking mailto, download, external links and Episerver Form.
View tracking.js
function epiGat(settings) {
if (settings.downloads || settings.external || settings.mailto) {
var isinternal = new RegExp('^' + window.location.protocol + '\/\/' +, 'i');
function addEvent(obj, type, fn) {
if (obj.addEventListener)
obj.addEventListener(type, fn, false);
else if (obj.attachEvent) {
obj['e' + type + fn] = fn;
obj[type + fn] = function () { obj['e' + type + fn](window.event); }
LucGosso / module.config
Last active Feb 6, 2020
Link to containing parent for media and blocks when not used. Blogg post:
View module.config
<?xml version="1.0" encoding="utf-8"?>
<add name="epi-cms.widgets.base" path="Styles/Styles.css" resourceType="Style"/>
<!-- Add a mapping from site to ~/ClientResources/Scripts to the dojo loader configuration -->
<add name="clientscripts" path="Scripts" />
You can’t perform that action at this time.