Skip to content

Instantly share code, notes, and snippets.

@SitecoreCpok
SitecoreCpok / MyKart.Foundation.Serialization.config
Created Jun 10, 2018
Unicorn Serialization for the Sitecore Helix based project
View MyKart.Foundation.Serialization.config
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<unicorn>
<configurations>
<configuration
name="Foundation.Serialization"
description="Foundation.Serialization templates and renderings">
<targetDataStore
physicalRootPath="D:\MyKart\MyKart\src\Foundation\Serialization\serialization"
useDataCache="false"
@SitecoreCpok
SitecoreCpok / ProgrammaticGoal.cs
Created May 26, 2018
Sitecore 9 Trigger Goal
View ProgrammaticGoal.cs
try
{
//Check if tracker is active or not
if (!Sitecore.Analytics.Tracker.IsActive)
{
Sitecore.Analytics.Tracker.StartTracking();
}
if(Sitecore.Analytics.Tracker.IsActive && Sitecore.Analytics.Tracker.Current.CurrentPage != null)
{
View Sitecore 9 Solr Custom Index
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:search="http://www.sitecore.net/xmlconfig/search/">
<sitecore role:require="Standalone or ContentDelivery or ContentManagement" search:require="solr">
<contentSearch>
<configuration type="Sitecore.ContentSearch.ContentSearchConfiguration, Sitecore.ContentSearch">
<indexes hint="list:AddIndex">
<index id="custom_content_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider">
<param desc="name">$(id)</param>
<param desc="core">$(id)</param>
<param desc="propertyStore" ref="contentSearch/indexConfigurations/databasePropertyStore" param1="$(id)" />
You can’t perform that action at this time.