This file contains hidden or 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
| public void OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) | |
| { | |
| ExamineManager.Instance.IndexProviderCollection["ExternalIndexer"].GatheringNodeData += OnGatheringNodeData; | |
| } | |
| private void OnGatheringNodeData(object sender, IndexingNodeDataEventArgs e) | |
| { | |
| if (e.Fields.ContainsKey("path")) | |
| { | |
| e.Fields["searchPath"] = e.Fields["path"].Replace(',', ' '); |
This file contains hidden or 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
| <div class="container"> | |
| <div class="row"> | |
| <div class="col"><img class="img-fluid" src="http://lorempixel.com/400/200/sports" /></div> | |
| <div class="col"><img class="img-fluid" src="http://lorempixel.com/400/200/city" /></div> | |
| <div class="col"><img class="img-fluid" src="http://lorempixel.com/400/200/animals" /></div> | |
| <div class="col"><img class="img-fluid" src="http://lorempixel.com/400/200/technics" /></div> | |
| <div class="col"><img class="img-fluid" src="http://lorempixel.com/400/200/nature" /></div> | |
| </div> | |
| </div> |
This file contains hidden or 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
| public class UmbracoSitemapService | |
| { | |
| private readonly UmbracoHelper _umbracoHelper; | |
| public UmbracoSitemapService() | |
| { | |
| _umbracoHelper = new UmbracoHelper(UmbracoContext.Current); | |
| } | |
| public List<SitemapItem> GetItemsAsList(int startNodeId) |
This file contains hidden or 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
| public class SitemapController : RenderMvcController | |
| { | |
| public ActionResult SitemapXml() | |
| { | |
| var startNode = CurrentPage.Site(); | |
| if (startNode != null) | |
| { | |
| var sitemapService = new UmbracoSitemapService(); | |
| var items = sitemapService.GetItemsAsList(startNode.Id); |
This file contains hidden or 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
| public class SitemapItem | |
| { | |
| public string Url { get; set; } | |
| public string LastUpdateDate { get; set; } | |
| public string Name { get; set; } | |
| } |
This file contains hidden or 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
| function clickItem(item) { | |
| if (item.id == 2147483647){ | |
| $location.path(item.editPath); | |
| }else{ | |
| $location.path($scope.entityType + '/' +$scope.entityType + '/edit/' +item.id); | |
| } | |
| } |
This file contains hidden or 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
| var app = angular.module("app", []); | |
| app.controller("LoginFormController", ['$scope', function ($scope) { | |
| $scope.emailRegex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; | |
| $scope.loginFormSubmit = function (event) { | |
| $scope.validation = true; | |
| if (!$scope.loginform.$valid) { | |
| event.preventDefault(); |
This file contains hidden or 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
| @inherits Umbraco.Web.Macros.PartialViewMacroPage | |
| @using System.Web.Mvc.Html | |
| @using ClientDependency.Core.Mvc | |
| @using Umbraco.Web | |
| @using Umbraco.Web.Models | |
| @using Umbraco.Web.Controllers | |
| @{ | |
| var loginModel = new LoginModel(); |
This file contains hidden or 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
| <div ng-controller="Umbraco.PropertyEditors.ColorPickerController"> | |
| <ul class="thumbnails color-picker"> | |
| <li ng-repeat="preval in model.prevalues" ng-class="{active: model.value === preval}"> | |
| <a ng-click="toggleItem(preval)" class="thumbnail" hex-bg-color="{{preval}}"> | |
| </a> | |
| </li> | |
| </ul> | |
| <input type="hidden" name="modelValue" ng-model="model.value" val-property-validator="validateMandatory"/> | |
| </div> |