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
#define parameters | |
$prefix = "sc9test_" | |
$PSScriptRoot = "C:\install\sitecore\9.0" | |
$XConnectCollectionService = "$prefix.xconnect" | |
$sitecoreSiteName = "$prefix.sc" | |
$SolrUrl = "https://solr-dev.precedent.local:8983/solr" | |
$SolrRoot = "C:\solr\solr-6.6.2" | |
$SolrService = "solr6.6.2" | |
$SqlServer = "localhost" | |
$SqlAdminUser = "sitecoreDev" |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web.UI.HtmlControls; | |
using Sitecore.Security.Accounts; | |
using Control = Sitecore.Web.UI.HtmlControls.Control; | |
namespace BlackTambourine.Core.SC.FieldType | |
{ | |
public class SecurityRoleList : Control |
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
@echo off | |
for /f "tokens=1-4 delims=/ " %%i in ("%date%") do ( | |
set dow=%%i | |
set month=%%j | |
set day=%%k | |
set year=%%l | |
) | |
set datestr=%month%_%day%_%year% | |
echo datestr is %datestr% |
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
public class ResultItem | |
{ | |
[IndexField("_name")] | |
public string Name { get; set; } | |
[IndexField("title_t")] | |
public string Title { get; set; } | |
} |
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
innerKeywordPredicate = innerKeywordPredicate.Or(x => x.IndexedContent.Like(w, fuzzyTolerance).Boost(25)); | |
innerKeywordPredicate = innerKeywordPredicate.Or(x => x.PageChildContent.Like(w, fuzzyTolerance).Boost(25)); |
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
public class FieldFacet | |
{ | |
public FieldFacet() | |
{ | |
} | |
public FieldFacet(string type, string name, string path, int count) | |
{ | |
FacetType = type; | |
FacetName = name; |
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" ?> | |
<!-- | |
Purpose: When removing Social configs and Experience Editor configs, you still need these for Sitecore UI to work without errors. | |
--> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
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
# SCRIPT CONFIG | |
# Set disable features to "true" for faster startup times, "false" re-enables them. | |
$disableFeatures= "true" | |
# Set the webroot of your Sitecore Website. | |
$sitecoreWebroot= "D:\inetpub\wwwroot\CoC\Website\" | |
# folder to backup these configs |
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" ?> | |
<!-- | |
Purpose: When removing Social configs and Experience Editor configs, you still need these for Sitecore UI to work without errors. | |
--> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<Target Name="ReferenceCleanup" BeforeTargets="BeforeBuild"> | |
<!--Set Copy Local to False for Release Builds, where the DLL is not needed or already exists on the Sitecore install; used because MVC intellisense fails without these--> | |
<Message Text="Start Release Build Copy Local Cleanup" Importance="high" /> | |
<ItemGroup> | |
<Reference Remove="Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"/> | |
<Reference Include="Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> |