View RemoveBinFilesFromUpdatePackage.ps1
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
Param( | |
[string]$pathToPackages | |
) | |
Add-Type -AssemblyName System.IO.Compression.FileSystem | |
function Unzip | |
{ | |
param([string]$zipfile, [string]$outpath) | |
[System.IO.Compression.ZipFile]::ExtractToDirectory($zipfile, $outpath) |
View SitecorePdf.xml
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" ?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<pipelines> | |
<getScreenShotForURL> | |
<!-- Disable security check --> | |
<processor type="Sitecore.ContentTesting.Pipelines.GetScreenShotForURL.CheckDisabler, Sitecore.ContentTesting"> | |
<patch:delete /> | |
</processor> |
View AddTimeoutToScript.cs
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 Sitecore.ContentTesting.Pipelines.GetScreenShotForURL; | |
namespace MyLibrary.GetScreenShotForURL | |
{ | |
public class AddTimeoutToScript : GenerateScreenShotProcessor | |
{ | |
public string Timeout { get; set; } | |
private const string StandardExit = "phantom.exit();\r\n});"; | |
View GeneratePdf.cs
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 PdfSharp.Drawing; | |
using PdfSharp.Pdf; | |
using Sitecore.ContentTesting.Pipelines.GetScreenShotForURL; | |
namespace MyLibrary.GetScreenShotForURL | |
{ | |
public class GeneratePdf : GenerateScreenShotProcessor | |
{ | |
public override void Process(GetScreenShotForURLArgs args) | |
{ |
View SimpleSitecorePdf.cs
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
var args = new GetScreenShotForURLArgs(item.ID); | |
CorePipeline.Run("getScreenShotForURL", args); |
View LogMessageLocal.xml
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" ?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<events> | |
<event name="logMessage:remote"> | |
<handler type="MyNamespace.LogMessageRemote, MyDll" method="LogInstanceName" /> | |
</event> | |
</events> | |
</sitecore> | |
</configuration> |
View LogMessageRemote.xml
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" ?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<pipelines> | |
<initialize> | |
<processor type="MyNamespace.LogMessageRemoteMap, MyDll" method="Initialize" /> | |
</initialize> | |
</pipelines> | |
</sitecore> | |
</configuration> |
View QueueRemoteEvent.cs
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
var remoteEvent = new LogMessageRemoteEvent(Sitecore.Configuration.Settings.InstanceName, "logMessage:remote"); | |
Sitecore.Eventing.EventManager.QueueEvent<LogMessageRemoteEvent>(remoteEvent); |
View GetDatasourceDependencies.cs
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.Linq; | |
using Sitecore; | |
using Sitecore.ContentSearch; | |
using Sitecore.ContentSearch.Pipelines.GetDependencies; | |
using Sitecore.Data; | |
using Sitecore.Data.Items; | |
using Sitecore.Diagnostics; | |
namespace Common.Sitecore.Search.GetDependencies | |
{ |
View IndexableRenderings.xml
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
<indexableRenderings> | |
<rendering name="RichText" id="{4F8942FF-C4E4-408A-B3D5-4657EE5050CA}" /> | |
</indexableRenderings> |
OlderNewer