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
SELECT DISTINCT fieldid | |
FROM versionedfields | |
WHERE fieldid IN (SELECT [itemid] | |
FROM sharedfields s | |
WHERE s.fieldid = '{BE351A73-FCB0-4213-93FA-C302D8AB4F51}' | |
AND s.value = '1' | |
UNION | |
SELECT [itemid] | |
FROM sharedfields s | |
WHERE s.fieldid = '{39847666-389D-409B-95BD-F2016F11EED5}' |
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
A SPE module that provides a dialog to stage (publish) Sitecore Commerce 8.2.1 catalog data |
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 Microsoft.ApplicationInsights.Channel; | |
using Microsoft.ApplicationInsights.DataContracts; | |
using Microsoft.ApplicationInsights.Extensibility; | |
using Sitecore.Pipelines.HttpRequest; | |
using System.Web; | |
namespace Sitecore.Foundation.SitecoreExtensions.Pipelines.HttpRequestBegin | |
{ | |
public class AddReferrerToTelemetry : HttpRequestProcessor | |
{ |
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
<!-- CAN CANCEL TEST | |
Determine if a test can be cancelled | |
--> | |
<canCancelTest patch:source="Sitecore.ContentTesting.config"> | |
<processor type="Sitecore.ContentTesting.Pipelines.CanControlTest.IsAdmin, Sitecore.ContentTesting"/> | |
<processor type="Sitecore.ContentTesting.Pipelines.CanControlTest.IsTestOwner, Sitecore.ContentTesting"/> | |
<processor type="Sitecore.ContentTesting.Pipelines.CanControlTest.HasRole, Sitecore.ContentTesting"> | |
<roles hint="list:AddRole"> | |
<role>sitecore\Analytics Advanced Testing</role> | |
</roles> |
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
<# | |
.SYNOPSIS | |
Move Bulk of Selected Items to Desitnation Folder | |
.NOTES | |
NEHEMIAH JEYAKUMAR | |
#> | |
$dropDownSelector = Get-Item -Path "master:\sitecore" |
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 virtual string GetSupportedFormats(HttpContextBase context) | |
{ | |
var acceptTypes = context?.Request?.AcceptTypes ?? new string[] { }; | |
if (acceptTypes.Any()) | |
{ | |
return PipelineHelpers.RunDianogaGetSupportedFormatsPipeline(acceptTypes); | |
} | |
var customAccept = context?.Request?.Headers?["customAccept"]; | |
if (!string.IsNullOrEmpty(customAccept)) |
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
<outboundRules> | |
<rule name="Require clients to revalidationpermanent redirects"> | |
<match serverVariable="RESPONSE_Cache_Control" pattern=".*" /> | |
<conditions> | |
<add input="{RESPONSE_STATUS}" pattern="301" /> | |
</conditions> | |
<action type="Rewrite" value="public, must-revalidate, max-age=0"/> | |
</rule> | |
</outboundRules> |
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
<rule name="Rule for Redirects"> | |
<match url=".*" /> | |
<conditions> | |
<add input="{Redirects:{PATH_INFO}}" pattern="(.+)" /> | |
</conditions> | |
<action type="Rewrite" url="redirect.aspx?url={C:1}" /> | |
</rule> |
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
<%@ Page Language="C#" %> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title>redirecting...</title> | |
</head> | |
<body> | |
</body> | |
</html> |