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
public class GenericLinkPropertyModel<T> : PropertyModel<T, PropertyLinkData<T>>, IExpandableProperty<T> where T: LinkData, new() | |
{ | |
private readonly IUrlResolver _urlResolver; | |
public GenericLinkPropertyModel(PropertyLinkData<T> propertyLinkData, IUrlResolver urlResolver) : base(propertyLinkData) | |
{ | |
_urlResolver = urlResolver; | |
Value = GetValue(propertyLinkData?.Link); | |
ExpandedValue = Value; | |
} |
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
define([ | |
'dojo/_base/declare', | |
'dojo/_base/lang', | |
'epi-cms/widget/ContentSelectorDialog', | |
'epi-cms/widget/ContentTree', | |
"epi-cms/component/_ContentNavigationTreeNode" | |
], function( | |
declare, | |
lang, |
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
public class CategoryContentImporter : IContentImporter | |
{ | |
private readonly IContentImporter _defaultContentImporter; | |
private readonly IContentRepository _contentRepository; | |
public CategoryContentImporter(IContentImporter defaultContentImporter, IContentRepository contentRepository) | |
{ | |
_defaultContentImporter = defaultContentImporter; | |
_contentRepository = contentRepository; | |
} |
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
define("site/widget/CustomContextualContentForestStoreModel", [ | |
// dojo | |
"dojo/_base/array", | |
"dojo/_base/declare", | |
"dojo/_base/lang", | |
"dojo/promise/all", | |
"dojo/when", | |
// epi | |
"epi-cms/core/ContentReference", | |
"epi-cms/widget/ContextualContentForestStoreModel" |
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
public static class WebApiConfig | |
{ | |
public static void Register(HttpConfiguration config) | |
{ | |
config.MapHttpAttributeRoutes(); | |
config.Configure(c => | |
{ | |
c.CamelCaseSerialization = true; | |
c.RemoveXmlFormatter = true; | |
}); |
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
[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.] | |
System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0 | |
System.Reflection.Assembly.GetTypes() +115 | |
System.Linq.<SelectManyIterator>d__17`2.MoveNext() +259 | |
System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +275 | |
System.Linq.Enumerable.ToDictionary(IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) +193 | |
Foundation.Core.Infrastructure.Initialization.ContentTypeUiDescriptorInitializer.GetDescriptorClasses() +781 | |
Foundation.Core.Infrastructure.Initialization.ContentTypeUiDescriptorInitializer.Initialize(InitializationEngine context) +96 | |
EPiServer.Framework.Initialization.Internal.ModuleNode.Execute(Action a, String key) +55 | |
EPiServer.Framework.Initialization.Internal.ModuleNode.Initialize(InitializationEngine context) +131 |
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
public class MyContentType | |
{ | |
[PropertyEditRestriction(new[] { "CmsAdmins" }) | |
public virtual string MyProperty { get; set; } | |
} |
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
public static class FacetExtensions | |
{ | |
public static ITypeSearch<T> ContentCategoriesFacet<T>(this ITypeSearch<T> request) where T : ICategorizable | |
{ | |
return request.HistogramFacetFor(x => x.Category, 1); | |
} | |
public static ITypeSearch<T> CategoriesFacet<T>(this ITypeSearch<T> request, Expression<Func<T, object>> fieldExpression) where T : ICategorizable | |
{ | |
return request.HistogramFacetFor(fieldExpression, 1); |
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
[ServiceConfiguration(typeof(ContentAreaRenderer), Lifecycle = ServiceInstanceScope.Singleton)] | |
public class ContainerAndRowContentAreaRenderer : ContentAreaRenderer | |
{ | |
// Number of columns in site grid | |
protected const int NumberOfGridColumns = 12; | |
// TagBuilder for the current container div. | |
protected TagBuilder CurrentContainer; | |
// TagBuilder for the current row div. |
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.Linq; | |
using EPiServer.ServiceLocation; | |
using Geta.EPi.Checkout.Core.Infrastructure.Exceptions; | |
using Mediachase.Commerce.Orders; | |
using Mediachase.Commerce.Website; | |
using Mediachase.Commerce.Website.Helpers; | |
namespace Geta.EPi.Checkout.Core.Services | |
{ |
NewerOlder