This file contains hidden or 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
private delegate string LinkTargetUrlDelegate(Item item, string linkFieldName); |
This file contains hidden or 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>Gets the URL from the link field of an item</summary> | |
/// <param name="item">The item to retrieve the link field URL from</param> | |
/// <param name="linkFieldName">Name of the link field.</param> | |
/// <returns>The target URL from link field.</returns> | |
public string GetLinkTargetUrl(Item item, string linkFieldName) | |
{ | |
Assert.ArgumentNotNull((object)item, nameof(item)); | |
Assert.ArgumentNotNull((object)linkFieldName, nameof(linkFieldName)); | |
string url = String.Empty; |
This file contains hidden or 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 LinkTargetUrl : IGenerateScribanContextProcessor | |
{ | |
private readonly IContext context; | |
public LinkTargetUrl(IContext context) | |
{ | |
this.context = context; | |
} | |
} |
This file contains hidden or 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
@Html.Sitecore().Rendering("{8B0393E9-EE25-4F0B-A5FD-777B3AD2C737}", | |
new { Parameters = "GridParameters={113BEF7C-97E6-46CA-8CF3-916F7FAA8DE2} | |
&FieldNames={ECEC476A-AA6A-4069-9B0D-C5C07BE8A98E} | |
&Styles={E41A4387-7F0F-4488-B411-8A0B78109BB0}&DynamicPlaceholderId=1", | |
Datasource = "/sitecore/content/SXA Reference/Playground/int/Home/features/scriban" }) |
This file contains hidden or 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
.success-message{ | |
display: none; | |
} | |
.submit-success .success-message{ | |
display: block; | |
} |
This file contains hidden or 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"?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<pipelines> | |
<forms.renderForm> | |
<processor type="SCMadeEasy.Feature.ExperienceFormsExtensions.Pipelines.SetSubmitStatusClass, SCMadeEasy.Feature.ExperienceFormsExtensions" | |
patch:before="processor[@type='Sitecore.ExperienceForms.Mvc.Pipelines.RenderForm.SetHtmlHelperSettings, Sitecore.ExperienceForms.Mvc']"/> | |
</forms.renderForm> | |
</pipelines> | |
</sitecore> |
This file contains hidden or 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 Sitecore.ExperienceForms.Mvc.Pipelines.RenderForm; | |
using Sitecore.Mvc.Pipelines; | |
namespace SCMadeEasy.Feature.ExperienceFormsExtensions.Pipelines | |
{ | |
public class SetSubmitStatusClass : MvcPipelineProcessor<RenderFormEventArgs> | |
{ | |
public override void Process(RenderFormEventArgs args) | |
{ |
NewerOlder