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 EPiServer.DataAbstraction; | |
using EPiServer.Framework; | |
using EPiServer.Framework.Initialization; | |
using EPiServer.Logging; | |
namespace AlloyWithFind.Business.Initialization | |
{ | |
[InitializableModule] | |
[ModuleDependency(typeof(EPiServer.Web.InitializationModule), typeof(EPiServer.Forms.InitializationModule))] |
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 AlloyWithFind.Models.Blocks; | |
using AlloyWithFind.Models.Pages; | |
using EPiServer.Cms.TinyMce.Core; | |
using EPiServer.Framework; | |
using EPiServer.Framework.Initialization; | |
using EPiServer.ServiceLocation; | |
namespace AlloyWithFind.Business.Initialization | |
{ | |
[ModuleDependency(typeof(TinyMceInitialization))] |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<languages> | |
<language name="English" id="en"> | |
<tinymce> | |
<editorstyles> | |
<title-paragraph-styles>Paragraph styles</title-paragraph-styles> | |
<title-introduction>Introduction</title-introduction> | |
<title-ingress>Ingress</title-ingress> | |
</editorstyles> | |
</tinymce> |
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 AlloyWithFind.Business.SelectionFactories; | |
using EPiServer.DataAbstraction; | |
using EPiServer.DataAnnotations; | |
using EPiServer.Forms.Core; | |
using EPiServer.Forms.Core.Internal; | |
using EPiServer.Forms.EditView; | |
using EPiServer.Shell.ObjectEditing; | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; |
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.Shell.ObjectEditing; | |
using System.Collections.Generic; | |
namespace AlloyWithFind.Business.SelectionFactories | |
{ | |
/// <summary> | |
/// Selection factory to return GTM category values for form submission event. | |
/// </summary> | |
public class GtmCategorySelectionFactory : ISelectionFactory | |
{ |
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.Forms.EditView | |
@using EPiServer.Editor | |
@model AlloyWithFind.Models.FormElements.TagManagerElementBlock | |
@* if in edit mode render the GTM values so that the editor can see them *@ | |
@if (PageEditing.PageIsInEditMode) | |
{ | |
<span class="Form__Element FormHidden @Html.Raw(ConstantsFormsUI.CSS_InvisibleElement)">@Model.EditViewFriendlyTitle</span> | |
} | |
else |
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
if (typeof $$epiforms !== 'undefined') { | |
$$epiforms(document).ready(function myfunction() { | |
$$epiforms(".EPiServerForms").on("formsSubmitted", function (event) { | |
if (event.isFinalizedSubmission && event.isSuccess) { | |
// we have our custom dataLayer object, we could also have this code somewhere: window.dataLayer = window.dataLayer || []; and then use that | |
if (typeof dataLayer !== 'undefined') { | |
var currentForm = $$epiforms(this).get(0); | |
var categoryName = currentForm.elements["gtmCategoryName"].value; | |
var formName = currentForm.elements["gtmFormName"].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
using EPiServer.DataAbstraction; | |
using EPiServer.DataAnnotations; | |
using EPiServer.Forms.Core; | |
using EPiServer.Forms.Implementation.Elements; | |
using EPiServer.ServiceLocation; | |
using System.ComponentModel.DataAnnotations; | |
namespace SampleCustomFormContainer.Models.Forms | |
{ | |
[ServiceConfiguration(typeof(IFormContainerBlock))] |
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.Forms.Controllers; | |
using EPiServer.Forms.Implementation.Elements; | |
using System.Web.Mvc; | |
namespace SampleCustomFormContainer.Controllers | |
{ | |
public class SiteFormsContainerBlockController : FormContainerBlockController | |
{ | |
public override ActionResult Index(FormContainerBlock currentBlock) | |
{ |
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
<%-- | |
==================================== | |
Version: 4.9.1. Modified: 20171030 | |
==================================== | |
--%> | |
<%@ Import Namespace="System.Web.Mvc" %> | |
<%@ Import Namespace="EPiServer.Web.Mvc.Html" %> | |
<%@ Import Namespace="EPiServer.Shell.Web.Mvc.Html" %> | |
<%@ Import Namespace="EPiServer.Forms" %> |
OlderNewer