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
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<pipelines> | |
<initialize> | |
<processor | |
type="FFB.Foundation.Backoffice.Pipelines.InitializeBuses,FFB.Foundation.Backoffice" | |
patch:instead="*[@type='Sitecore.Messaging.InitializeBuses, Sitecore.Messaging']" | |
resolve="true" /> | |
</initialize> | |
</pipelines> |
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.Globalization; | |
using System.Threading.Tasks; | |
using Sitecore.Diagnostics; | |
using Sitecore.Events; | |
using Sitecore.Messaging; | |
using Sitecore.Messaging.Events; | |
using Sitecore.Pipelines; |
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
<ClientEvents> | |
<ItemDoubleClick EventHandler="Users_onDoubleClick" /> | |
<RenderComplete EventHandler="OnLoad" /> | |
</ClientEvents> |
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
<ClientEvents> | |
<ItemDoubleClick EventHandler="Users_onDoubleClick" /> | |
</ClientEvents> |
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
function OnLoad() { | |
var searchBox = document.querySelector("[id$=searchBox]"); | |
if (searchBox) { | |
searchBox.maxLength = 200; | |
} | |
} |
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
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<pipelines> | |
<resolveTokens> | |
<processor type="Arcwave.RichText.Pipelines.ResolveTokens.ResolveEditingTokens, Arcwave.RichText" resolve="true" patch:instead="*[@type='Sitecore.XA.Foundation.Editing.Pipelines.ResolveTokens.ResolveEditingTokens, Sitecore.XA.Foundation.Editing']" > | |
<profileMapping type="Arcwave.RichText.Models.RteMappingConfiguration, Arcwave.RichText" > | |
<rteMappings hint="raw:AddRteMappings"> | |
<rteMappping name="Description1" rtePath="/sitecore/system/Settings/Html Editor Profiles/Arcwave Rich Text Query Matching/Sample Description 1" token="$arcwave1RichTextProfile"> | |
<roles name="WebEntity"> | |
<role>sitecore\Arcwave Webmaster</role> |
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 Arcwave.RichText.Models | |
{ | |
using Sitecore.Xml; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Xml; | |
public class RteMappingConfiguration | |
{ | |
public List<RteMapping> MappingList { get; private 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
namespace Arcwave.RichText.Pipelines.ResolveTokens | |
{ | |
using Arcwave.RichText.Models; | |
using System.Linq; | |
using Microsoft.Extensions.DependencyInjection; | |
using Sitecore.Data.Items; | |
using Sitecore.DependencyInjection; | |
using Sitecore.Security.Accounts; | |
using Sitecore.XA.Foundation.Abstractions.Configuration; | |
using Sitecore.XA.Foundation.Editing; |
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"?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/"> | |
<sitecore role:require="Standalone or ContentManagement"> | |
<events> | |
<event name="item:saving"> | |
<handler type="Arcwave.Events.Handlers.ApplicationShortcut, Arcwave.Events" method="OnItemSaving"/> | |
</event> | |
</events> | |
</sitecore> | |
</configuration> |
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 void OnItemSaving(object sender, EventArgs args) | |
{ | |
var eventArgs = args as SitecoreEventArgs; | |
var updatedItem = eventArgs.Parameters[0] as Item; | |
if (this.ShouldSkipItem(updatedItem)) | |
{ | |
return; | |
} |
NewerOlder