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
## Sitecore Docker Repository (Clone Locally) | |
git clone https://github.com/Sitecore/docker-images/ | |
## Change Directory to Root of Cloned Repository | |
cd docker-images | |
## Run Build.ps1 (with default tags) | |
.\Build.ps1 | |
## Set Path for License File |
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 Newtonsoft.Json.Linq; | |
using Sitecore.Data.Items; | |
using Sitecore.LayoutService.Configuration; | |
namespace VitaliiTylyk.JavascriptServices.RenderingContentsResolvers | |
{ | |
/// <summary> | |
/// Builds a tree-like structure of datasource item's descendants | |
/// </summary> | |
public class DescendantsTreeRenderingContentsResolver : Sitecore.LayoutService.ItemRendering.ContentsResolvers.RenderingContentsResolver |
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 | |
Sitecore PowerShell Extensions 5.0 uses new icons. This script is designed to update | |
your existing modules to use the new icon. | |
.DESCRIPTION | |
The SPE module changes the icon when you enable/disable the module. Only disabled modules | |
will automatically take the new icon. This is script helps by updating all of the icons | |
for enabled modules. Alternatively, you can go through and disable then enable the modules. | |
#> |
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( | |
$solrVersion = "6.6.2", | |
$installFolder = "c:\solr", | |
$solrPort = "8983", | |
$solrHost = "solr", | |
$solrSSL = $true, | |
$nssmVersion = "2.24", | |
$JREVersion = "9.0.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
# Add the Sitecore MyGet repository to PowerShell | |
Register-PSRepository -Name SitecoreGallery -SourceLocation https://sitecore.myget.org/F/sc-powershell/api/v2 | |
# Install the Sitecore Install Framwork module | |
Install-Module SitecoreInstallFramework | |
# Install the Sitecore Fundamentals module (provides additional functionality for local installations like creating self-signed certificates) | |
Install-Module SitecoreFundamentals | |
# Import the modules into your current PowerShell context (if necessary) |
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( | |
$solrVersion = "6.6.2", | |
$installFolder = "c:\solr", | |
$solrPort = "8983", | |
$solrHost = "solr", | |
$solrSSL = $true, | |
$nssmVersion = "2.24", | |
$JREVersion = "1.8.0_151" | |
) |
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
# | |
# PSSolrService.ps1 | |
# | |
<# region Description | |
############################################################################### | |
# # | |
# File name PSService.ps1 # | |
# # | |
# Description A sample service in a standalone PowerShell script # | |
# # |
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 functions | |
## | |
# | |
# If necessary, download a file and unzip it to the specified location | |
# | |
function downloadAndUnzipIfRequired | |
{ | |
Param( |
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
$tenantTemplatesPath = "master:\templates\Project\Showcase" | |
$sitePath = "master:\content\Showcase\int" | |
function Assert-FeatureTemplateInProject { | |
[CmdletBinding()] | |
param( | |
[parameter(Mandatory=$true)] | |
[String[]] $TenantTemplateFolder, | |
[parameter(Mandatory=$true)] |
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 Merge-Layout { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory = $true,Position = 0,ValueFromPipeline = $true)] | |
[item]$Item | |
) | |
process { | |
$layoutField = New-Object "Sitecore.Data.Fields.LayoutField" -ArgumentList ($Item.Fields[[Sitecore.FieldIDs]::LayoutField]); | |
$finalLayoutField = New-Object -TypeName "Sitecore.Data.Fields.LayoutField" -ArgumentList $Item.Fields[[Sitecore.FieldIDs]::FinalLayoutField] |
NewerOlder