View (Using custom model class for SPE ListView)
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 a custom model class for SPE ListView reports can clean up the script and make it easier to control action button visibility. |
View (Sitecore Commerce 8.2.1 Staging with SPE)
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
A SPE module that provides a dialog to stage (publish) Sitecore Commerce 8.2.1 catalog data |
View (SIFLess Uninstall for SXC 9)
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
An extension for the SIFLess uninstall scripts to include SXC 9 components. |
View (Search Context Provider)
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
Provides a search context object based on the type of the search result model |
View DynamicPlaceholdersWithoutFluentTagBuilder.cshtml
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 with a basic TagBuilder *@ | |
@{ | |
var colDiv = new TagBuilder("div"); | |
colDiv.AddCssClass("col-sm-4"); | |
colDiv.GenerateId("featureCol"); | |
} | |
<div> | |
@Html.Sitecore().DynamicPlaceholder("feature", colDiv, 3, 3) | |
</div> |
View FluentTagBuilderHelperExtensions.cs
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 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
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 with a basic TagBuilder *@ | |
<div> | |
@Html.Sitecore().DynamicPlaceholder("feature", | |
Html.Tag("div") | |
.AddCssClass("col-sm-4") | |
.GenerateId("featureCol"), | |
3, 3) | |
</div> | |
@* Using with a Func<DynamicPlaceholderRenderContext, TagBuilder> *@ |
View FluentTagBuilder.cs
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 FluentTagBuilder | |
{ | |
public TagBuilder InnerBuilder { get; private set; } | |
public FluentTagBuilder(string tagName) | |
{ | |
InnerBuilder = new TagBuilder(tagName); | |
} | |
public FluentTagBuilder AddCssClass(string cssClass) |
View Minimal-CommerceServer.Core.config.xml
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> | |
<CommerceServer> | |
<application siteName="MyStorefrontSite" /> | |
<catalog /> | |
<profiles /> | |
</CommerceServer> | |
</configuration> |
View ReindexTree.ps1
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
$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 |
NewerOlder