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
| [InitializableModule] | |
| public class DependencyResolverInitialization : IConfigurableModule | |
| { | |
| public void ConfigureContainer(ServiceConfigurationContext context) | |
| { | |
| //Implementations for custom interfaces can be registered here. | |
| context.ConfigurationComplete += (o, e) => | |
| { | |
| //Register custom implementations that should be used in favour of the default implementations |
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
| $criteria = @( | |
| @{Filter = "Equals"; Field = "_group"; Value = "cdc03752f74a4558862c06b0e52ceac0"}, | |
| @{Filter = "Equals"; Field = "_language"; Value = "en"} | |
| ) | |
| $props = @{ | |
| Index = "sitecore_web_index" | |
| Criteria = $criteria | |
| } | |
| Find-Item @props -First 1 | Select-Object -Expand "Fields" |
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
| namespace MvcOutputCache | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Text; | |
| using System.Web; | |
| using System.Web.Caching; |
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
| <# | |
| .SYNOPSIS | |
| Lists all bio detail records that do not have a location selected | |
| .NOTES | |
| Francisco Quintanilla | |
| #> | |
| filter Where-NoLocationSelected { | |
| param( | |
| [Parameter(Mandatory=$true,ValueFromPipeline=$true)] |
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 static class CustomHtmlHelper | |
| { | |
| public static HtmlString Fingerprint(this HtmlHelper helper, string rootRelativePath) | |
| { | |
| return new HtmlString(Fingerprint(rootRelativePath, string.Empty)); | |
| } | |
| private static string Fingerprint(string rootRelativePath, string extension) | |
| { | |
| if (HttpRuntime.Cache[rootRelativePath] != null) |
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
| cd 'master:/sitecore/content/Shared Data/Events/' | |
| Get-ChildItem -Recurse . | Where-Object { $_.TemplateName -match "Event Detail Page" -and $_.Fields["Display Address"] -ne $null } | ForEach-Object { | |
| if(($_.Fields["Display Address"].Value).length -eq 0 -and ($_.Fields["Map Address"].Value).length -gt 0) { | |
| $_.Editing.BeginEdit() | |
| $_.Fields["Display Address"].Value = $_.Fields["Map Address"].Value; | |
| $_.Editing.EndEdit() | Out-Null | |
| Write-Host $_.Name | |
| } | |
| } |
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> | |
| <indexing.resolveFieldBoost> | |
| <processor type="Sitecore.ContentSearch.Pipelines.ResolveBoost.ResolveFieldBoost.SystemFieldFilter, Sitecore.ContentSearch"> | |
| <patch:delete /> | |
| </processor> | |
| <processor type="Sitecore.ContentSearch.Pipelines.ResolveBoost.ResolveFieldBoost.FieldDefinitionItemResolver, Sitecore.ContentSearch"> | |
| <patch:delete /> |
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" encoding="utf-8"?> | |
| <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
| <sitecore> | |
| <contentSearch> | |
| <indexConfigurations> | |
| <defaultSolrIndexConfiguration> | |
| <mediaIndexing> | |
| <mimeTypes> | |
| <includes> |
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
| <system.webServer> | |
| <modules runAllManagedModulesForAllRequests="true"> | |
| <remove name="WebDAVModule" /> | |
| <add type="Sitecore.DependencyInjection.SitecorePerRequestScopeModule, Sitecore.Kernel" name="SitecorePerRequestScopeModule" /> | |
| ... | |
| </system.webServer> |
NewerOlder