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 MyApplication.Components | |
{ | |
using System.Collections.Generic; | |
using System.Linq; | |
using Umbraco.Core.Composing; | |
using Umbraco.Core.Configuration.UmbracoSettings; | |
using Umbraco.Core.Events; | |
using Umbraco.Core.Models.Entities; | |
using Umbraco.Core.Services.Implement; |
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
var moment = require('moment'); | |
// Allows dates to be offset in the past rather than right now. offset format "hh:mm:ss". | |
// "24:00:00" would be 24hrs in the past. | |
var offsetValue = pm.globals.get("offset"); | |
var offset = moment.duration(offsetValue); | |
// Determines the duration between start & end dates format "hh:mm:ss" | |
// "00:30:00" would be a 30 minute delay. | |
var durationValue = pm.globals.get("duration"); |
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.Linq; | |
using Umbraco.Core.Logging; | |
using Umbraco.Core.Persistence.Migrations; | |
using Umbraco.Core.Persistence.SqlSyntax; | |
namespace My.Website.Migrations | |
{ | |
public abstract class CustomMigrationBase : MigrationBase | |
{ | |
public CustomMigrationBase(ISqlSyntaxProvider sqlSyntax, ILogger logger) : base(sqlSyntax, logger) |
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
@inherits UmbracoViewPage<dynamic> | |
@using Umbraco.Web.Templates; | |
@using Newtonsoft.Json.Linq; | |
@using Our.Umbraco.GridSettings.Web; | |
@using Our.Umbraco.GridSettings.Services; | |
@using Our.Umbraco.GridSettings.Resolvers; | |
@{ | |
var attributesResolver = new GroupByPrefixTokenGridSettingsAttributesResolver("_"); | |
var attributesService = new GridSettingsAttributesService(attributesResolver); | |
} |
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.Web.Mvc; | |
using Umbraco.Web.Models; | |
using Umbraco.Web; | |
using Umbraco.Core.Xml; | |
using Umbraco.Web.Mvc; | |
namespace MyWebsite.Controllers | |
{ | |
public class MyController : RenderMvcController | |
{ |
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 NUnit.Framework; | |
using Our.Umbraco.Ditto.Tests.Mocks; | |
namespace Our.Umbraco.Ditto.Tests | |
{ | |
[TestFixture] | |
[Category("Processors")] | |
public class DecimalTests | |
{ | |
public class MyModel |
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.Web; | |
using Umbraco.Web.WebApi; | |
namespace My.Website.Controllers.Api | |
{ | |
public class FormHtmlApiController : UmbracoApiController | |
{ | |
public IHtmlString Get(string id) | |
{ | |
return Umbraco.RenderMacro("FormsRenderForm", new { FormGuid = id }); |
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.Collections.Generic; | |
using System.Globalization; | |
using Umbraco.Core; | |
using Umbraco.Core.Services; | |
using Umbraco.Web; | |
using Umbraco.Web.Editors; | |
using Umbraco.Web.Models.ContentEditing; | |
namespace MyWebsite | |
{ |
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 Umbraco.Core.Logging; | |
using Umbraco.Core.Persistence; | |
using Umbraco.Core.Persistence.Migrations; | |
using Umbraco.Core.Persistence.SqlSyntax; | |
namespace MyApp.Migrations | |
{ | |
[Migration("1.1.0", 1, MyCustomSectionMigrationConstants.ProductName)] | |
public class AddCustomPropertyToBeAddedLaterToMyPocoTable : MigrationBase |
NewerOlder