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
param ([string]$Path, [Switch]$Aggregation, [Switch]$Client, [Switch]$ContactMergeDataUpgrade, [Switch]$Eds, [Switch]$Fxm, [Switch]$Owin, [Switch]$Spe, [Switch]$Crawling, [Switch]$Log, [Switch]$Publishing) | |
$global:logFolderPath = $Path | |
$global:sitecoreBaretailSourceIdentifier = "Sitecore.Baretail" | |
[String[]]$global:logFilter = @() | |
Write-Host "Path = $Path" | |
Write-Host "Aggregation = $Aggregation" | |
Write-Host "Client = $Client" | |
Write-Host "ContactMergeDataUpgrade = $ContactMergeDataUpgrade" |
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
$script:siteName = "website" | |
$script:language = @("az-AZ","de-DE","en","en-ASIA","en-AU","en-CA","en-CENTAFR","en-EASTAFR","en-FJ","en-GB","en-IE","en-IN","en-JP","en-MIDEAST","en-NORTHAFR","en-NZ","en-PG","en-RU","en-SG","en-SOLUTION","en-US","en-WESTAFR","en-ZA","es-CO","es-ES","es-MX","fr-BE","fr-FR","id-ID","it-IT","ja-JP","kk-KZ","ko-KR","ms-MY-ML-Malay","nb-NO","nl-BE","nl-NL","pl-PL","pt-BR","pt-PT","ro-RO","ru-AZ","ru-KZ","ru-RU","sv-SE","zh-CN","uk-UA") | |
$script:startPath = "/sitecore/content/Company/Home" | |
$script:links = @() | |
$script:csvPath = "$SitecoreDataFolder\links.csv" | |
$script:database = "web" | |
Get-Item -Path $script:csvPath | Remove-Item -Force -Permanently | |
function HasLayout($item) { |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<sitecore> | |
<pipelines> | |
<forms.renderForm> | |
<processor type="Custom.Feature.Forms.Pipelines.Forms.SetFormId, Custom.Feature.Forms" | |
patch:after="processor[@type='Sitecore.ExperienceForms.Mvc.Pipelines.RenderForm.SetFormParameters, Sitecore.ExperienceForms.Mvc']"/> | |
<processor type="Custom.Feature.Forms.Pipelines.Forms.CreateHiddenFields, Custom.Feature.Forms" | |
patch:after="processor[@type='Sitecore.ExperienceForms.Mvc.Pipelines.RenderForm.BuildForm, Sitecore.ExperienceForms.Mvc']"/> | |
</forms.renderForm> |
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 class SetFormId : MvcPipelineProcessor<RenderFormEventArgs> | |
{ | |
public override void Process(RenderFormEventArgs args) | |
{ | |
var customId = string.Empty; | |
// Try get customId from form submission | |
if (args.IsPost) | |
{ | |
var fullKey = | |
HttpContext.Current.Request.Form.AllKeys.FirstOrDefault(key => |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<!-- | |
Purpose: This include file configures Email delivery service API. | |
--> | |
<configuration xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:eds="http://www.sitecore.net/xmlconfig/eds/" xmlns:exmEnabled="http://www.sitecore.net/xmlconfig/exmEnabled/"> | |
<sitecore exmEnabled:require="yes" role:require="Standalone or ContentManagement or DedicatedDispatch" eds:require="CustomSmtp"> | |
<exm> | |
<eds> | |
<smtpSettings type="Sitecore.EDS.Core.Net.Smtp.SmtpSettings, Sitecore.EDS.Core" singleInstance="true"> | |
<server>localhost</server> |
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
<sitecore> | |
<scheduling> | |
<agent type="Sitecore.Tasks.PublishAgent" method="Run" interval="00:00:15"> | |
<param desc="source database">master</param> | |
<param desc="target database">web</param> | |
<param desc="mode (full or smart or incremental)">incremental</param> | |
<param desc="languages">en, it, fr</param> | |
</agent> | |
</scheduling> | |
</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
using Sitecore; | |
using Sitecore.Collections; | |
using Sitecore.Configuration; | |
using Sitecore.Data; | |
using Sitecore.Data.Fields; | |
using Sitecore.Data.Items; | |
using Sitecore.Data.Managers; | |
using Sitecore.Diagnostics; | |
using Sitecore.Globalization; | |
using Sitecore.SecurityModel; |
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
$sqlUser='user' | |
$sqlPassword = 'b' | |
$prefix = 'databasePrefix' | |
$core_connection = "Data Source=.\SQLEXPRESS;Initial Catalog=$($prefix)_Core;User ID=$($sqlUser);Password=$($sqlPassword);MultipleActiveResultSets=True;ConnectRetryCount=15;ConnectRetryInterval=1" | |
$master_connection = "Data Source=.\SQLEXPRESS;Initial Catalog=$($prefix)_Master;User ID=$($sqlUser);Password=$($sqlPassword);MultipleActiveResultSets=True;ConnectRetryCount=15;ConnectRetryInterval=1" | |
$web_connection = "Data Source=.\SQLEXPRESS;Initial Catalog=$($prefix)_Web;User ID=$($sqlUser);Password=$($sqlPassword);MultipleActiveResultSets=True;ConnectRetryCount=15;ConnectRetryInterval=1" | |
.\Sitecore.Framework.Publishing.Host configuration setconnectionstring core $core_connection | |
.\Sitecore.Framework.Publishing.Host configuration setconnectionstring master $master_connection |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.webServer> | |
<aspNetCore processPath=".\Sitecore.Framework.Publishing.Host.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" > | |
<environmentVariables> | |
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" /> | |
</environmentVariables> | |
</aspNetCore> | |
</system.webServer> | |
</configuration> |
NewerOlder