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 GraphQL.Types; | |
using Newtonsoft.Json; | |
using Sitecore.Configuration; | |
using Sitecore.Data.Items; | |
using Sitecore.Data.Fields; | |
using Sitecore.Diagnostics; | |
using Sitecore.LayoutService.Serialization.FieldSerializers; | |
using Sitecore.LayoutService.Serialization.ItemSerializers; | |
using Sitecore.LayoutService.Serialization.Pipelines.GetFieldSerializer; | |
using Sitecore.Services.GraphQL.Content.GraphTypes; |
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
<%@ Page Language="C#" AutoEventWireup="true" %> | |
<%@ Import Namespace="Sitecore.Configuration" %> | |
<%@ Import Namespace="System" %> | |
<%@ Import Namespace="System.Xml" %> | |
<% | |
XmlDocument configuration = Factory.GetConfiguration(); | |
Response.ContentType = "application/xml"; | |
Response.Write(configuration.OuterXml); |
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" ?> | |
<MergeToolChooserConfig> | |
<!-- Params are sent from %USERPROFILE%\.gitconfig | |
Typically (as shown in http://hedgehogdevelopment.github.io/tds/chapter4.html#configuring-sitecore-item-merge-for-git-using-mergechooser) they are | |
\"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\" | |
which map to parameters $1, $2, $3, and $4 respectively. | |
But additional labels (for the window panes in the merge tools) may also be passed like | |
\"Local\" \"Remote\" \"Original then Merged Result (when selection is resolved)\" | |
which would map to parameters $5, $6 and $7 respectively --> | |
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
<# | |
.SYNOPSIS | |
Installs a Sitecore Host plugin NuGet package to a Sitecore Host instance. | |
.DESCRIPTION | |
Sitecore Host plugins are distributed via NuGet packages and have specific requirements to where assets are deployed. This will extract the files and place them in the correct directories depending on whether this is an application plugin or a runtime plugin. | |
.PARAMETER Path |
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
## Nuget v2 URL for the target platform, and the target marketing version | |
$SitecoreNuget = "https://sitecore.myget.org/F/sc-platform-9-1/api/v2" | |
$TargetVersion = "9.1.0" | |
function Add-XMLAttribute([System.Xml.XmlNode] $Node, $Name, $Value) | |
{ | |
$attrib = $Node.OwnerDocument.CreateAttribute($Name) | |
$attrib.Value = $Value | |
$node.Attributes.Append($attrib) | |
} |
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
[CmdletBinding()] | |
param( | |
[string] $SitecoreInstanceName = "habitathome", | |
[string] $PublishingServiceZipPackage = ".\Sitecore Publishing Service 3.1.1 rev. 180807-x64.zip", | |
[string] $WebrootPath = "D:\Inetpub\wwwroot", | |
[string] $SqlServerName = ".", | |
[string] $SqlAdminAccount = "sa", | |
[string] $SqlAdminPassword = 'The-password-for-sa-account', | |
[switch] $UpdateSchemasOnly | |
) |
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 module ".\BlueGreenSolrSettings.psm1" | |
$ErrorActionPreference = "Stop" | |
<# | |
.SYNOPSIS | |
Pushes the specified config and related pieces to the SolrCloud Zookeepers. | |
.PARAMETER solrPath | |
Path on the machine to the Solr installation. | |
EX: C:\solr\solr-6.2.1 |
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
# Be sure to update this ID to whichever script you want to execute when the link is clicked. | |
$scriptId = "{6EAF681D-5D87-4C43-B279-356A8B9A15CF}" | |
$item = Get-Item -Path "." | |
$script = Get-Item -Path "master:" -ID $scriptId | |
$command = "item:executescript(id=$($item.ID),db=$($item.Database.Name),script=$($script.ID),scriptDb=$($script.Database.Name))" | |
$options = [ordered]@{"Download Sample"=$command;"View Documentation"=$command;} | |
$props = @{ | |
Parameters = @( |
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="Sitecore.Pipelines.Loader.ShowVersion, Sitecore.Kernel"> | |
<patch:delete /> | |
</processor> | |
<processor type="Sitecore.Pipelines.Loader.ShowHistory, Sitecore.Kernel"> | |
<patch:delete /> | |
</processor> |
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
Param( | |
[Parameter(Mandatory=$true)] | |
[string[]]$DnsName, | |
[DateTime]$CertExpirationDate = (Get-Date).AddYears(5), | |
[string]$PersonalCertStoreLocation = "Cert:\LocalMachine\My", | |
[string]$HashAlgorithm = "SHA512", | |
[string]$RootCertSubject = "CN=DevRoot", | |
[string]$RootCertStoreLocation = "Cert:\LocalMachine\Root", | |
[DateTime]$RootCertExpirationDate = (Get-Date).AddYears(20) | |
) |