Skip to content

Instantly share code, notes, and snippets.

@NikRimington
NikRimington / allproperties.cshtml
Created May 5, 2023 14:43 — forked from KevinJump/allproperties.cshtml
Display all the properties (and nested properties) for a content node in Umbraco 10/11.
@using Umbraco.Cms.Web.Common.PublishedModels;
@using Umbraco.Cms.Core.Models;
@using Umbraco.Cms.Core.Models.Blocks;
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage
@{
Layout = null;
}
<html>
<head>
@NikRimington
NikRimington / umbracoSettings Sample.Config
Created March 20, 2021 16:09
Umbraco Settings - Request Handler - Current v7/v8 version
<requestHandler>
<!-- this ensures that all url segments are turned to ASCII as much as we can -->
<addTrailingSlash>false</addTrailingSlash>
<urlReplacing removeDoubleDashes="true" toAscii="try">
<char org=" ">-</char>
<char org="!"></char>
<char org="#"></char>
<char org="%">percent</char>
<char org="&amp;">and</char>
<char org="&gt;"></char>
@NikRimington
NikRimington / controller.js
Last active November 23, 2016 19:55
My Property editor
/*This is based around the uSEO-Pro property editor (massive tribute to be given once finished)*/
angular.module("umbraco")
.controller("myNamespace.mySeoController",
function ($scope, editorState, entityResource, contentEditingHelper, $http, $rootScope) {
var htmlAlias = $scope.model.config.htmlAlias;
$scope.disableKeyword = $scope.model.config.disableKeyword === true;
$scope.staticTitle = $scope.model.config.staticTitle;
var url = editorState.current.urls[0];