Skip to content

Instantly share code, notes, and snippets.

@leekelleher
leekelleher / dracula.theme.css
Created April 4, 2024 18:36
Prototype of Dracula Theme for Umbraco CMS (v14/Bellissima)
:root {
/* Dracula Theme
* Links for reference:
* https://draculatheme.com/contribute
* https://spec.draculatheme.com/
* https://github.com/dracula/visual-studio-code/blob/master/src/dracula.yml
*/
/* Dracula: Base */
--umb-dragula-background: #282a36;
@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 / umb-hack-appHeaderActions.js
Last active August 14, 2023 10:25
Umbraco (v8-10) AngularJS hacking the top navigation
angular.module("umbraco").run([
"$compile",
"appState",
"eventsService",
function ($compile, appState, eventsService) {
eventsService.on("app.ready", function (e, args) {
// console.log("app.ready", e, args);
var scope = e.targetScope.$new();
using System.Collections.Generic;
using System.Linq;
using Umbraco.Community.Contentment.DataEditors;
using Umbraco.Core.PropertyEditors;
using Umbraco.Web;
namespace MyWebsite.DataSources
{
public class PropertyDataDataSource : IDataListSource
{
@leekelleher
leekelleher / remove-wp-meta.php
Created January 22, 2013 10:30
WordPress plugin to remove the auto-generated meta tags.
<?php
/*
Plugin Name: Remove WP Meta
Plugin URI: http://leekelleher.com/
Description: This plugin removes the auto-generated WP meta tags from each webpage.
Author: Lee Kelleher
Version: 0.1.0
Author URI: http://leekelleher.com/
*/
System overview
Staff, roles & responsibilities
Environments
Applications
Software Licenses
Version control
Process Flows
Documentation
Support & Maintenance
Issue Submission & Resolution
@leekelleher
leekelleher / UmbracoMembersDataListSource.cs
Last active April 28, 2021 09:35
Contentment: Umbraco Members data-source
/* Copyright © 2021 Lee Kelleher.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json.Linq;
using Umbraco.Core;
@leekelleher
leekelleher / ExamineDataListSource.cs
Last active April 27, 2021 15:03
Contentment: Examine (Lucene) data-source
/* Copyright © 2021 Lee Kelleher.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
using System.Collections.Generic;
using System.Linq;
using Examine;
using Examine.Search;
using Umbraco.Core;
@leekelleher
leekelleher / TemplatedLabelConfigurationEditor.cs
Created April 20, 2021 16:48
Contentment: Templated Label prototype
/* Copyright © 2021 Lee Kelleher.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
using System.Collections.Generic;
using Umbraco.Core.IO;
using Umbraco.Core.PropertyEditors;
namespace Umbraco.Community.Contentment.DataEditors
@leekelleher
leekelleher / ContentmentDataSourcePreValueSource.cs
Last active April 19, 2021 13:21
Umbraco Forms - to populate the prevalues with a data-source from a Contentment data-editor
/* Copyright © 2021 Lee Kelleher.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json.Linq;
using Umbraco.Community.Contentment.DataEditors;