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.Configuration; | |
| using Sitecore.Data; | |
| using Sitecore.Data.Items; | |
| using Sitecore.Diagnostics; | |
| using Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor; | |
| using Sitecore.Shell.Framework.CommandBuilders; | |
| using Sitecore.Shell.Framework.Commands.TemplateBuilder; | |
| using Sitecore.Shell.Web.UI.WebControls; | |
| using System; | |
| using System.IO; |
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 void RenderControl(Item child, StringBuilder commandsBuilder) | |
| { | |
| var header = child["Header"]; | |
| if (string.IsNullOrEmpty(header)) header = child.DisplayName; | |
| var icon = child["Icon"] ?? child["__Icon"]; | |
| var click = child["Click"]; | |
| commandsBuilder.AppendLine("<div style='margin:6px 0;'>"); | |
| try |
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> | |
| <renderContentEditor> | |
| <processor type="SCXM.Panels.Pipelines.RenderContentEditor.SlidePanelInjector, SCXM.Panels" /> | |
| </renderContentEditor> | |
| </pipelines> | |
| </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
| using Sitecore.Data; | |
| using Sitecore.Data.Items; | |
| using Sitecore.Diagnostics; | |
| using Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor; | |
| namespace SCXM.Panels.Pipelines.RenderContentEditor | |
| { | |
| public class SlidePanelInjector | |
| { | |
| public void Process(RenderContentEditorArgs args) |
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> | |
| <services> | |
| <configurator patch:instead="*[@type='Sitecore.Services.Infrastructure.DependencyInjection.ComponentServicesConfigurator, Sitecore.Services.Infrastructure']" type="MyServiceConfiguratorNamespace, MyAssemblyName"/> | |
| </services> | |
| </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
| [RequiredApiKeyExt] | |
| public class MyCustomApiController : ServicesApiController | |
| { | |
| // Controller logic... | |
| } |
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> | |
| <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 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 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 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> |