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 CustomLinqToSolrIndex<TItem> : LinqToSolrIndex<TItem> | |
{ | |
private readonly SolrSearchContext context; | |
private readonly string cultureCode; | |
/// <summary> | |
/// Initializes a new instance of the <see cref="CustomLinqToSolrIndex{TItem}" /> class. | |
/// </summary> | |
/// <param name="context">The context.</param> |
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
namespace Example | |
{ | |
using System.Collections.Generic; | |
using System.Linq; | |
using Sitecore; | |
using Sitecore.Data.Items; | |
using Sitecore.Mvc.Extensions; | |
using Sitecore.Mvc.Pipelines.Response.GetPageRendering; | |
using Sitecore.Mvc.Presentation; |
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
namespace Examples | |
{ | |
using System; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
using System.IO; | |
using System.Linq; | |
using Sitecore.Data.Items; | |
using Sitecore.Diagnostics; |
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
namespace Examples.Common.Sc.Pipelines | |
{ | |
using System; | |
using Sitecore.Data; | |
using Sitecore.Mvc.Pipelines.Response.GetRenderer; | |
using Sitecore.Mvc.Presentation; | |
public class AreaController : GetRendererProcessor | |
{ | |
public override void Process(GetRendererArgs args) |
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
namespace IExamples.Sc.Pipelines.GetLookupSourceItems | |
{ | |
using System.Linq; | |
using Sitecore.Data; | |
using Sitecore.Data.Fields; | |
using Sitecore.Data.Items; | |
using Sitecore.Diagnostics; | |
using Sitecore.Pipelines.GetLookupSourceItems; |
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
namespace SampleSite | |
{ | |
using System.Linq; | |
using System.Web.Security; | |
using Sitecore.Diagnostics; | |
using Sitecore.Pipelines; | |
using Sitecore.Security.Accounts; | |
public class RolesInitializer |
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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
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 System; | |
using System.IO; | |
using Newtonsoft.Json; | |
using YamlDotNet.Serialization; | |
internal class Program | |
{ | |
private const int count = 10000; |
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
/// <summary> | |
/// An action to manage data for the ProductList | |
/// </summary> | |
/// <param name="pageNumber">The page number.</param> | |
/// <param name="facetValues">The facet values.</param> | |
/// <param name="sortField">The sort field.</param> | |
/// <param name="sortDirection">The sort direction.</param> | |
/// <returns> | |
/// The view that represents the ProductList | |
/// </returns> |
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
private MultipleProductSearchResults GetMultipleProductSearchResults(BaseItem dataSource, | |
CommerceSearchOptions productSearchOptions) | |
{ | |
Assert.ArgumentNotNull(productSearchOptions, "productSearchOptions"); | |
MultilistField searchesField = dataSource.Fields[Templates.ProductSearch.Fields.NamedSearches.ToString()]; | |
var searches = searchesField.GetItems(); | |
var productsSearchResults = new List<SearchResults>(); | |
foreach (var search in searches) |
OlderNewer