Skip to content

Instantly share code, notes, and snippets.

@leekelleher
leekelleher / LondonBoroughs.cs
Created May 24, 2013 11:02
London Boroughs DropDownList DataType for Umbraco
using System;
using System.Collections.Generic;
using System.Web.UI.WebControls;
using umbraco.cms.businesslogic.datatype;
namespace Our.Umbraco.DataTypes
{
public class LondonBoroughs : AbstractDataEditor
{
private DropDownList m_Control = new DropDownList();
@leekelleher
leekelleher / MyApplication.cs
Last active December 19, 2015 13:59
Example of Umbraco 6.1's IContentFinder
using Umbraco.Core;
using Umbraco.Core.Services;
using Umbraco.Web.Mvc;
using Umbraco.Web.Routing;
namespace Our.Umbraco
{
public class MyApplication : ApplicationEventHandler
{
protected override void ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
@leekelleher
leekelleher / template-animation.md
Last active December 19, 2015 19:38
Exploring the 'Template Animation' concept
@leekelleher
leekelleher / ucomponents-data-list.md
Last active May 18, 2019 08:32
uComponents - potential data-type... Data List

uComponents - Data List

The idea is to have a provider-based property-editor for various data list types. To have a separation between the UI (editor control) and the data-source. e.g. a DropDownList shouldn't care where the data comes from, only that it's available and consistent.

Data List (types of)

  • DropDownList
  • CheckBoxList
  • AutoComplete
  • Templatable List
@leekelleher
leekelleher / cmsContentType_Usage.sql
Last active January 19, 2024 19:03
Umbraco - database analysis - SQL Queries
-- Copied from Hendy https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/72814-creating-a-list-of-unused-doc-types#comment-233729
-- Find all unused docTypes
-- These results may contain docTypes that are masters of used ones, so need to exclude these too...
SELECT
A.nodeId as 'DocTypeId',
B.text AS 'Name',
A.alias AS 'Alias'
FROM
cmsContentType A LEFT JOIN
@leekelleher
leekelleher / XPathDropDownListPropertyEditor.cs
Created January 16, 2014 11:13
Prototype for an Umbraco "XPath DropDownList" property editor.
using System.Collections.Generic;
using System.Linq;
using Umbraco.Core;
using Umbraco.Core.Models;
using Umbraco.Core.PropertyEditors;
using Umbraco.Core.Xml;
namespace Umbraco.Web.PropertyEditors
{
[PropertyEditor(Constants.PropertyEditors.XPathDropDownListAlias, "XPath DropDownList", "dropdown", ValueType = "INT")]
using System.Linq;
using Umbraco.Core;
using Umbraco.Core.Logging;
using Umbraco.Web;
using Umbraco.Web.Routing;
namespace uComponents.ContentFinders
{
public class PageNotFoundContentFinder : IContentFinder
{
@leekelleher
leekelleher / all-html-elements.html
Created March 11, 2014 17:28
HTML element reference
<!doctype html>
<html>
<head>
<title>Test display of HTML elements</title>
</head>
<body>
<h1>Testing display of HTML elements</h1>
<h2>This is 2nd level heading</h2>
<p>This is a test paragraph.</p>
<h3>This is 3rd level heading</h3>
System overview
Staff, roles & responsibilities
Environments
Applications
Software Licenses
Version control
Process Flows
Documentation
Support & Maintenance
Issue Submission & Resolution
@leekelleher
leekelleher / 1-README.md
Last active August 29, 2015 14:06
Ditto - Example of mapping an Archetype property to custom POCO model/type

Here is an example of using Ditto to map an Archetype property to custom POCO model/type.


Let's say that we have an Archetype to represent some SEO meta-data, and we'll call the DocType property "metaData".

We'd have 3 properties in the Archetype:

  • metaTitle
  • metaDescription