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
# Root path to look 'orphan' items under - update here as needed | |
cd 'master:/sitecore/media library' | |
$counter = 0 | |
$itemsToProcess = Get-ChildItem -Recurse . | Where-Object { $_.TemplateName -ne 'Media Folder' } | |
if ($itemsToProcess -ne $null) { | |
$itemsToProcess | ForEach-Object { | |
$referrers = Get-ItemReferrer -Item $_ | measure | |
if ($referrers.Count -eq 0) { | |
$counter++ |
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 Get-ComputedDependencyGraphUrl { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$true, Position=0 )] | |
[Hashtable]$allDependenciesClean | |
) | |
begin { | |
Write-Verbose "Cmdlet Get-ComputedDependencyGraphUrl - Begin" | |
} |
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
$databaseName = $actionData["databaseName"] | |
$filename = $actionData["filename"] | |
$resourceLoaderType = ([System.Type]::GetType("Sitecore.Data.DataProviders.ReadOnly.Protobuf.IResourceLoader, Sitecore.Data.ResourceItems.ProtobufNet")) | |
$resourceLoader = [Sitecore.DependencyInjection.ServiceLocator]::ServiceProvider.GetService($resourceLoaderType) | |
$paths = [System.Collections.Generic.List[String]]@() | |
$paths.Add([Sitecore.MainUtil]::MapPath("/App_Data/items/$($databaseName)/$($filename)")) > $null | |
$paths.Add([Sitecore.MainUtil]::MapPath("/sitecore modules/items/$($databaseName)/$($filename)")) > $null | |
$defaultFieldValues = New-Object -TypeName 'System.Collections.Generic.Dictionary[[guid], [string]]' | |
$database = [Sitecore.Configuration.Factory]::GetDatabase($databaseName) |
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
import React, { useEffect, useState } from 'react'; | |
import { withSitecoreContext, dataApi, Placeholder } from '@sitecore-jss/sitecore-jss-react'; | |
import { dataFetcher } from './dataFetcher'; | |
import config from './temp/config'; | |
const HybridPlaceholder = ({ | |
name, | |
rendering, | |
sitecoreContext, | |
}) => { |
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" ?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:environment="http://www.sitecore.net/xmlconfig/environment/"> | |
<sitecore> | |
<watchers environment:require="!DEV"> | |
<patch:delete /> | |
</watchers> | |
</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
<?xml version="1.0"?> | |
<!-- For more information on using Web.config transformation visit https://go.microsoft.com/fwlink/?LinkId=301874 --> | |
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1"> | |
<system.webServer> | |
<modules> | |
<add type="Sitecore.Resources.Media.UploadWatcher, Sitecore.Kernel" xdt:Locator="Match(type)" xdt:Transform="Remove" /> | |
<add type="Sitecore.IO.XslWatcher, Sitecore.Kernel" xdt:Locator="Match(type)" xdt:Transform="Remove" /> | |
<add type="Sitecore.IO.LayoutWatcher, Sitecore.Kernel" xdt:Locator="Match(type)" xdt:Transform="Remove" /> | |
<add type="Sitecore.Configuration.ConfigWatcher, Sitecore.Kernel" xdt:Locator="Match(type)" xdt:Transform="Remove" /> | |
</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
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/"> | |
<sitecore role:require="ContentManagement or ContentDelivery or Reporting or Processing"> | |
<watchers> | |
<patch:delete /> | |
</watchers> | |
</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
# The Prefix that will be used on SOLR, Website and Database instances. | |
$Prefix = "Demo" | |
# The root folder with the license file and WDP files. | |
$SCInstallRoot = "C:\ResourceFiles" | |
# Install Solr Single Developer | |
$SolrSingleDeveloperParams = @{ | |
Path = "$SCInstallRoot\Solr-SingleDeveloper.json" | |
SolrInstallRoot = "c:\Solution\SolR840\SolR840-$Prefix" | |
SolrServicePrefix = $Prefix | |
SolrPort = "9999" |
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); |
NewerOlder