Skip to content

Instantly share code, notes, and snippets.

Ben Golden BenGGolden

Block or report user

Report or block BenGGolden

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
BenGGolden / (Using custom model class for SPE ListView)
Last active Aug 12, 2019
Using custom model class for SPE ListView
View (Using custom model class for SPE ListView)
Using a custom model class for SPE ListView reports can clean up the script and make it easier to control action button visibility.
BenGGolden / (Sitecore Commerce 8.2.1 Staging with SPE)
Created Aug 11, 2019
Sitecore Commerce 8.2.1 Staging with SPE
View (Sitecore Commerce 8.2.1 Staging with SPE)
A SPE module that provides a dialog to stage (publish) Sitecore Commerce 8.2.1 catalog data
View (SIFLess Uninstall for SXC 9)
An extension for the SIFLess uninstall scripts to include SXC 9 components.
View (Search Context Provider)
Provides a search context object based on the type of the search result model
View DynamicPlaceholdersWithoutFluentTagBuilder.cshtml
@* Using with a basic TagBuilder *@
var colDiv = new TagBuilder("div");
@Html.Sitecore().DynamicPlaceholder("feature", colDiv, 3, 3)
View FluentTagBuilderHelperExtensions.cs
public static class FluentTagBuilderHelperExtensions
public static FluentTagBuilder Tag(this HtmlHelper helper, string tagName)
return new FluentTagBuilder(tagName);
public static HtmlString DynamicPlaceholder(this SitecoreHelper sitecoreHelper, string placeholderName,
FluentTagBuilder chrome, int count = 1, int maxCount = 0, int seed = 0)
View DynamicPlaceholderWithFluentTagBuilder.cshtml
@* Using with a basic TagBuilder *@
3, 3)
@* Using with a Func<DynamicPlaceholderRenderContext, TagBuilder> *@
View FluentTagBuilder.cs
public class FluentTagBuilder
public TagBuilder InnerBuilder { get; private set; }
public FluentTagBuilder(string tagName)
InnerBuilder = new TagBuilder(tagName);
public FluentTagBuilder AddCssClass(string cssClass)
BenGGolden / Minimal-CommerceServer.Core.config.xml
Last active Jul 6, 2017
Minimal CommerceServer.Core.config
View Minimal-CommerceServer.Core.config.xml
<?xml version="1.0" encoding="utf-8" ?>
<application siteName="MyStorefrontSite" />
<catalog />
<profiles />
View ReindexTree.ps1
$item = Get-Item .
$options = @{}
[Sitecore.ContentSearch.ContentSearchManager]::Indexes | Foreach-Object { $options.Add($_.Name, $_.Name) }
$props = @{
Parameters = @(
@{Name="indexName"; Title="Choose an index"; Options=$options; Tooltip="Choose one."}
Title = "Index selector"
Description = "Choose an index."
Width = 300
You can’t perform that action at this time.