Skip to content

Instantly share code, notes, and snippets.

View mattbrailsford's full-sized avatar

Matt Brailsford mattbrailsford

View GitHub Profile
@mattbrailsford
mattbrailsford / gist:872753
Created March 16, 2011 16:18
Possible uSiteBuilder syntax for property update or deletion
using System;
using System.Collections.Generic;
using System.Web;
using Vega.USiteBuilder;
namespace Umb.DocTypes
{
[DocumentType]
public class TestPage : Vega.USiteBuilder.DocumentTypeBase
{
@mattbrailsford
mattbrailsford / AppBase.cs
Created May 6, 2011 17:07
Umbraco Media Icons
using System;
using System.IO;
using umbraco.BusinessLogic;
using umbraco.cms.businesslogic.media;
using umbraco.cms.presentation.Trees;
using umbraco.IO;
namespace TheOutfield.UmbExt.MediaIcons.Logic
{
public class AppBase : ApplicationBase
@mattbrailsford
mattbrailsford / rte.css
Created August 5, 2011 13:31
Umbraco v5 CSS MetaData
/*
Name: Heading 1
*/
h1
{
color: #f00;
font-size: 2em;
}
/*
@mattbrailsford
mattbrailsford / RobotsTxtCheck.cs
Created October 29, 2011 16:42
An example uGoLive check
namespace Our.Umbraco.uGoLive.Checks
{
[Check("8088E981-174C-4ABA-9867-AF219B4E0D9E", "Robots.txt", "Create a robots.txt file to block access to system folders", "SEO")]
public class RobotsTxtCheck : AbstractCheck
{
public override bool CanRectify
{
get { return false; }
}
@mattbrailsford
mattbrailsford / dashboard.config
Created November 10, 2011 11:05
uGoLive Config Section
<?xml version="1.0" encoding="utf-8" ?>
<dashBoard>
...
<section alias="uGoLiveDashboardSection">
<areas>
<area>developer</area>
</areas>
<tab caption="uGoLive Checklist">
<control>/umbraco/plugins/uGoLive/Dashboard.ascx</control>
</tab>
@mattbrailsford
mattbrailsford / UmbracoPaste.js
Created July 2, 2012 10:38
Using TinyMCE Paste.onPreProcess event
/**
* editor_plugin_src.js
*
* Copyright 2012, Umbraco
* Released under MIT License.
*
* License: http://opensource.org/licenses/mit-license.html
*/
(function () {
@mattbrailsford
mattbrailsford / ContentApplicationDefinition.cs
Created July 4, 2012 13:12
Declaring a applications / trees in Umbraco 4.8+
[Application("content", "Content", ".traycontent")]
public class ContentApplicationDefinition : IApplication
{ }
@mattbrailsford
mattbrailsford / WidgetGrid.xml
Created September 13, 2012 10:10
WidgetGrid Data Structure
<WidgetGrid>
<col1>
<nodeId>1054</nodeId>
</col1>
<col4>
<nodeId>1053</nodeId>
<nodeId>1054</nodeId>
</col4>
</WidgetGrid>
@mattbrailsford
mattbrailsford / WidgetGrid.json
Created September 13, 2012 10:15
WidgetGrid Data Structure
{
"col1": [ 1054 ],
"col4": [ 1053, 1054 ]
}
@mattbrailsford
mattbrailsford / .hgignore
Created December 13, 2012 12:01
A copy of my .hgignore script for use in Umbraco
#########################################
# #
# TheOutfiled's Mercurial Ignore file #
# #
#########################################
##### File globs to match ####
syntax: glob
# Umbraco