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
| <ClientEvents> | |
| <ItemDoubleClick EventHandler="Users_onDoubleClick" /> | |
| <RenderComplete EventHandler="OnLoad" /> | |
| </ClientEvents> |
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
| <ClientEvents> | |
| <ItemDoubleClick EventHandler="Users_onDoubleClick" /> | |
| </ClientEvents> |
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
| function OnLoad() { | |
| var searchBox = document.querySelector("[id$=searchBox]"); | |
| if (searchBox) { | |
| searchBox.maxLength = 200; | |
| } | |
| } |
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
| <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 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
| 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 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
| 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 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"?> | |
| <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 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 void OnItemSaving(object sender, EventArgs args) | |
| { | |
| var eventArgs = args as SitecoreEventArgs; | |
| var updatedItem = eventArgs.Parameters[0] as Item; | |
| if (this.ShouldSkipItem(updatedItem)) | |
| { | |
| return; | |
| } |
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 static StartMenu.ApplicationShortcut GetApplicationShortcut(Item item) | |
| { | |
| Assert.ArgumentNotNull((object) item, nameof (item)); | |
| LinkField field = (LinkField) item.Fields["Application"]; | |
| Assert.IsNotNull((object) field, "link field"); | |
| string internalPath = field.InternalPath; | |
| if (internalPath.Length > 0) | |
| { | |
| Item obj = Client.Site.Database.Items[internalPath]; | |
| if (obj != null) |
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/" xmlns:search="http://www.sitecore.net/xmlconfig/search/" xmlns:role="http://www.sitecore.net/xmlconfig/role/"> | |
| <sitecore search:require="Solr" role:require="ContentManagement or Standalone"> | |
| <pipelines> | |
| <contentSearch.PopulateSolrSchema> | |
| <processor type="Sitecore.ContentSearch.SolrProvider.Pipelines.PopulateSolrSchema.PopulateFields, Sitecore.ContentSearch.SolrProvider"> | |
| <param patch:instead="*[@type='Sitecore.ContentSearch.SolrProvider.Factories.DefaultPopulateHelperFactory']" type="MyNamespace.ExtPopulateHelperFactory" /> | |
| </processor> | |
| </contentSearch.PopulateSolrSchema> | |
| </pipelines> |