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 MvpGlassUserControl<T,K,M> : GlassUserControl<M> | |
where T : IView<M> | |
where K : IPresenter | |
where M : class | |
{ | |
protected T View { get; set; } | |
protected K Presenter { get; private set; } | |
protected override void OnLoad(EventArgs e) | |
{ |
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 xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/"> | |
<sitecore> | |
<sites> | |
<site name="shell" set:content="web" /> | |
<site name="modules_shell" set:content="web" /> | |
<site name="testing"> | |
<patch:delete /> | |
</site> | |
</sites> |
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
hey Oliver. |
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 RelatedThemesFacet : IComputedIndexField | |
{ | |
public string FieldName { get; set; } | |
public string ReturnType { get; set; } | |
public object ComputeFieldValue(IIndexable indexable) | |
{ | |
var indexableItem = indexable as SitecoreIndexableItem; | |
if (indexableItem == null || indexableItem.Item == null) |
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 master:/content/home | |
$newTemplate = [Sitecore.Configuration.Factory]::GetDatabase("master").Templates["Sample/Sample Item"]; | |
$item.ChangeTemplate($newTemplate) |
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.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using Sitecore.Data.Items; | |
using Sitecore.Links; | |
namespace Sitemap.Custom | |
{ | |
public class CustomLinkProvider : LinkProvider |
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
#some test synonym mappings unlikely to appear in real input text | |
aaafoo => aaabar | |
bbbfoo => bbbfoo bbbbar | |
cccfoo => cccbar cccbaz | |
fooaaa,baraaa,bazaaa | |
# Some synonym groups specific to this example | |
GB,gib,gigabyte,gigabytes | |
MB,mib,megabyte,megabytes | |
Television, Televisions, TV, TVs |
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
{ | |
"continent": { | |
"name": "North America", | |
"code": "NA" | |
}, | |
"country": { | |
"name": "United States", | |
"isoCode": "US" | |
}, | |
"city": "Atlanta", |
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
<%@ Page language="c#" %> | |
<%@ Import Namespace="Sitecore" %> | |
<%@ Import Namespace="Sitecore.Diagnostics" %> | |
<%@ Import Namespace="Sitecore.Web" %> | |
<%@ Import Namespace="System" %> | |
<%@ Import Namespace="System.Collections" %> | |
<%@ Import Namespace="System.Web.UI" %> | |
<%@ Import Namespace="System.Web.UI.HtmlControls" %> | |
<%@ Import Namespace="System.Web.UI.WebControls" %> |
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
# Run as steps, not full script | |
#using docker image from https://hub.docker.com/_/sonarqube/ | |
# Step 1 - Create docker volumes | |
docker volume create --name sonar-conf | |
docker volume create --name sonar-logs | |
docker volume create --name sonar-data | |
docker volume create --name sonar-extensions |
OlderNewer