This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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="&">and</char> | |
<char org=">"></char> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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]; |