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
function customMemberResource($q, $http, umbDataFormatter, umbRequestHelper) { | |
function saveMember(content, action, files) { | |
// custom code | |
} | |
return { | |
getPagedResults: function (memberTypeAlias, options) { | |
// custom code | |
}, |
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
@model GridControl | |
@{ | |
string view = Model.Editor.Render != null ? Model.Editor.Render.ToString() : Model.Editor.View.ToString(); | |
view = view.ToLower().Replace(".html", ".cshtml"); | |
if (!view.Contains("/")) | |
{ | |
view = "grid/editors/" + view; | |
} |
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
namespace Opten.Umbraco.Components.Web.Extensions | |
{ | |
/// <summary> | |
/// Provides extension methods for <c>IPublishdedContent</c>. | |
/// </summary> | |
public static class IPublishedContentExtensions | |
{ | |
/// <summary> | |
/// Gets node from contentpicker | |
/// </summary> |
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 nuPickers.Shared.DotNetDataSource; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Umbraco.Web; | |
namespace Opten.NAMESPACE.Web.DataSources | |
{ | |
public class LanguagePickerDataSource : IDotNetDataSource | |
{ | |
IEnumerable<KeyValuePair<string, string>> IDotNetDataSource.GetEditorDataItems(int contextId) |
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 System; | |
using System.IO; | |
using System.Web; | |
namespace Cultiv.DynamicRobots | |
{ | |
public class RobotsTxt : IHttpHandler | |
{ | |
public bool IsReusable | |
{ |
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
app.directive('stDefaultSelection', function() { | |
return { | |
require: 'stTable', | |
restrict: 'A', | |
scope: { | |
selection: '=stDefaultSelection', | |
}, | |
link: function link(scope, element, attrs, controller) { | |
var pagination = null, | |
hasLoaded = false, |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using umbraco; | |
using umbraco.BusinessLogic; | |
using Umbraco.Core; | |
using Umbraco.Core.Models; | |
using Umbraco.Core.Services; |