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
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<pipelines> | |
<renderField> | |
<!-- Inline tooltips renderer --> | |
<processor type="SitecoreCoffee.Feature.Content.Pipelines.RenderField.RenderTooltips, SitecoreCoffee.Feature.Content" | |
patch:after="processor[@type='Sitecore.Pipelines.RenderField.GetFieldValue, Sitecore.Kernel']" /> | |
</renderField> | |
</pipelines> | |
</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
using HtmlAgilityPack; | |
using Sitecore; | |
using Sitecore.Data; | |
using Sitecore.Pipelines.RenderField; | |
using System; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
namespace SitecoreCoffee.Feature.Content.Pipelines.RenderField | |
{ |
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 Quotes : ComponentDataFieldBase, IComputedIndexField | |
{ | |
public Quotes() | |
{ | |
RenderingId = new Guid("{607E275A-7EEC-413F-95F8-F1B71DFCE27B}"); | |
FieldNames = new List<string>() | |
{ | |
"Title" | |
}; | |
FieldNamesRichText = new List<string>(); |
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 abstract class ComponentDataFieldBase | |
{ | |
/// <summary> | |
/// Index field name | |
/// </summary> | |
public string FieldName { get; set; } | |
/// <summary> | |
/// Index field return type | |
/// </summary> |
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
protected virtual Rendering GetRendering(string renderingType, object parameters, params string[] defaultValues) | |
{ | |
Rendering rendering = new Rendering() | |
{ | |
RenderingType = renderingType | |
}; | |
int index = 0; | |
while (index < defaultValues.Length - 1) | |
{ | |
rendering[defaultValues[index]] = defaultValues[index + 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
# Sitecore 9 Installer | |
# Credits to George Chang - https://blogs.perficient.com/sitecore/2017/10/23/how-to-install-sitecore-9-with-the-sitecore-install-framework/ | |
# Parameters config | |
$installConfig = | |
@{ | |
SitecoreVersion = "9.0.2 rev. 180604" | |
Prefix = "sc90" | |
WebRoot = "C:\inetpub\wwwroot" |
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 Sitecore.Mvc.Helpers; | |
namespace SitecoreCoffee.Foundation.Extensions | |
{ | |
public static class SitecoreHelperExtensions | |
{ | |
/// <summary> | |
/// Gets current rendering prperty | |
/// </summary> | |
/// <param name="sitecoreHelper">SitecoreHelper instance</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
# SIF Installation Script | |
## Verify elevated | |
## https://superuser.com/questions/749243/detect-if-powershell-is-running-as-administrator | |
$elevated = [bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).groups -match "S-1-5-32-544") | |
if($elevated -eq $false) | |
{ | |
throw "In order to install SIF, please run this script elevated." | |
} |
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"?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<sc.variable name="unicornSourceFolder" value="d:\Projects\SitecoreCoffee\src\" /> | |
</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
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<unicorn> | |
<configurations> | |
<configuration name="Foundation.Serialization" | |
description="Serialization configuration for Helix structure"> | |
<targetDataStore physicalRootPath="$(unicornSourceFolder)\$(layer)\$(module)\serialization" type="Rainbow.Storage.SerializationFileSystemDataStore, Rainbow" useDataCache="false" singleInstance="true" /> |
NewerOlder