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.Linq; | |
using EPiServer; | |
using EPiServer.Core; | |
using EPiServer.DataAbstraction; | |
using EPiServer.PlugIn; | |
using EPiServer.Scheduler; | |
using Foundation.Cms.Categories; | |
using Geta.EpiCategories; | |
using Geta.EpiCategories.Extensions; |
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.Configuration; | |
using System.Linq; | |
using System.Net; | |
using System.Web; | |
using System.Web.Hosting; | |
using Episerver.Marketing.Common.Helpers; | |
using EPiServer.ServiceLocation; | |
using EPiServer.Tracking.Commerce.Data; | |
using EPiServer.Tracking.Core; | |
using EPiServer.Tracking.PageView; |
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.ComponentModel.DataAnnotations; | |
using EPiServer.Core; | |
using EPiServer.PlugIn; | |
namespace TokenisedContent.Features.TokenisedContent | |
{ | |
[PropertyDefinitionTypePlugIn] | |
public class ReplacementTokenProperty : PropertyList<ReplacementToken> { } | |
public class ReplacementToken |
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
/// <summary> | |
/// Programmatically create a new MetaField on the Contact MetaClass <seealso href="http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-Commerce/8/Business-Foundation/Business-Meta-Model/MetaField-class/"/> | |
/// </summary> | |
private void setupMetaField() | |
{ | |
MetaClassManager metaModel = DataContext.Current.MetaModel; | |
foreach (MetaClass mc in metaModel.MetaClasses) | |
{ | |
if (mc.Name == "Contact") | |
{ |
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 void TrackEmailClick(HttpContextBase httpContext, EPiServer.Tracking.Core.ITrackingService trackingService) | |
{ | |
try | |
{ | |
var email = GetCurrentUserEmail(); | |
// If you know the users name and/or additional information | |
// like company name it's also possible to associate here | |
var userData = new UserData() { Name = email, Email = email }; | |
var trackingData = new TrackingData<object> | |
{ |
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 Newtonsoft.Json.Linq; | |
using RestSharp; | |
namespace InsightClient | |
{ | |
class Program | |
{ | |
private static string deviceId = "<deviceid>"; // retrive from _madid cookie value | |
private static string apiRootUrl = "<apiRootUrl>"; // get from Insight / Profile store developer portal | |
private static string subscriptionKey = "<subscriptionKey>"; // get from Insight / Profile store developer portal |
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 Mediachase.Commerce; | |
namespace EPiServer.Reference.Commerce.Site.Features.MarketSecurity | |
{ | |
public interface IMarketAccessRightsHelper | |
{ | |
bool IsFilteredMarketsRequest(); | |
bool UserHasAccessToMarket(IMarket market); | |
} | |
} |
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
'use strict'; | |
// --------------- Helpers that build all of the responses ----------------------- | |
var http = require('http'); | |
var axios = require('axios'); | |
var striptags = require('striptags'); | |
function buildSpeechletResponse(title, output, repromptText, shouldEndSession) { | |
return { |
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.Configuration; | |
using System.Data.SqlClient; | |
using System.IO; | |
using david_tec.Models.Blocks; | |
using david_tec.Models.Pages; | |
using EPi.Blog.Templates.PlugIn; | |
using EPiServer; | |
using EPiServer.Core; | |
using EPiServer.Core.Html.StringParsing; |
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 EPiServer.ServiceLocation; | |
using EPiServer.Tracking.Core; | |
namespace InsightScopes.Business.ChangeScope | |
{ | |
[ServiceConfiguration(ServiceType = typeof(ITrackingDataInterceptor), Lifecycle = ServiceInstanceScope.Singleton)] | |
public class CustomScopeInterceptor : ITrackingDataInterceptor | |
{ | |
public int SortOrder => int.MaxValue; // Ensure the interceptor fires last |