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> | |
/// Add items to a project | |
/// </summary> | |
/// <param name="repo">The ProjectRepository instance</param> | |
/// <param name="project">The project to save the items against</param> | |
/// <param name="contentReferences">A list of ContentReferences to add to the project. *Note!* the item to add should be the draft version number, not the current published version number</param> | |
/// <returns>A list of the saved project items</returns> | |
public IList<ProjectItem> AddItemsToProject(ProjectRepository repo, Project project, | |
IList<ContentReference> contentReferences) | |
{ |
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> | |
/// Removing items from a project | |
/// </summary> | |
/// <param name="repo">The ProjectRepository instance</param> | |
/// <param name="projectItem">The project item(s) to remove</param> | |
public void RemoveItemsFromProject(ProjectRepository repo, IList<ProjectItem> projectItem) | |
{ | |
repo.DeleteItems(projectItem.Select(x => x.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.Linq; | |
using EPiServer.Core; | |
using EPiServer.Framework; | |
using EPiServer.Framework.Initialization; | |
using EPiServer.Framework.Localization; | |
using EPiServer.ServiceLocation; | |
using InitializationModule = EPiServer.Web.InitializationModule; | |
namespace EPiServer.Templates.Alloy.ValidateItemsInFolder | |
{ |
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
[InitializableModule] | |
[ModuleDependency(typeof (EPiServer.Web.InitializationModule))] | |
public class AddTimeStampToImages : IInitializableModule | |
{ | |
public void Initialize(InitializationEngine context) | |
{ | |
ContentRoute.CreatedVirtualPath += CreatedVirtualPath; | |
} | |
private void CreatedVirtualPath(object sender, UrlBuilderEventArgs urlBuilderEventArgs) |
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
.epi-forms-icon.epi-forms-constrainedtextboxelementblock__icon { | |
background-image: url(constrainedtextboxelementblock16x16.png); | |
} |
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 Epi9Site.PageMoveApproval.Models; | |
using EPiServer; | |
using EPiServer.Core; | |
using EPiServer.DataAccess; | |
using EPiServer.Framework; | |
using EPiServer.Framework.Initialization; | |
using EPiServer.Framework.Localization; | |
using EPiServer.Security; |
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
[InitializableModule] | |
[ModuleDependency(typeof(EPiServer.Web.InitializationModule))] | |
public class OverrideLoginImages : IInitializableModule | |
{ | |
public void Initialize(InitializationEngine context) | |
{ | |
var host = ServiceLocator.Current.GetInstance<IHostingEnvironment>(); | |
if (host == null) return; | |
var mappedProvider = new VirtualPathMappedProvider("OverrideLoginImages", new NameValueCollection()); |
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 ApprovalsApi.Models | |
{ | |
public class ApprovalDecision | |
{ | |
public string Decision; | |
public int StepId; | |
public int ActiveStepIndex; | |
} | |
} |
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 EpiBot.Models | |
{ | |
public class ApprovalDecision | |
{ | |
public string Decision; | |
public int StepId; | |
public int ActiveStepIndex; | |
} | |
} |
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.Net; | |
using System.Runtime.Serialization; | |
using System.Text; | |
using EPiServer; | |
using EPiServer.Core; | |
using EPiServer.Marketing.KPI.Manager.DataClass; | |
using EPiServer.Marketing.KPI.Results; | |
using EPiServer.Personalization.VisitorGroups; |