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
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<commands> | |
<command name="bucket:packager" type="Sitecore.OneClickPackager.Business.Packager,Sitecore.OneClickPackager"/> | |
</commands> | |
</sitecore> | |
</configuration> | |
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
import { ScTabsModule } from '@speak/ng-bcl/tabs'; | |
import { ScTableModule } from '@speak/ng-bcl/table'; | |
import { ScButtonModule } from '@speak/ng-bcl/button'; | |
// Add imported modules to import section | |
@NgModule({ | |
declarations: [ | |
AppComponent | |
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
<!-- BackButton and Buttons --> | |
<sc-back-button>Back</sc-back-button> | |
<button scButton="primary">Primary</button> | |
<button scButton [isFullWidth]="true">Full width</button> | |
<!-- Tabs --> | |
<sc-tab-group variant="switch"> | |
<sc-tab label="Tab 1"> | |
<sc-icon icon="about" title="about" size="xxxlarge">about</sc-icon><br /> |
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
/* Import ScModules from @speak/ng-bcl */ | |
import { ScIconModule } from '@speak/ng-bcl/icon'; | |
import { ScPageModule } from '@speak/ng-bcl/page'; | |
import { ScTabsModule } from '@speak/ng-bcl/tabs'; | |
import { ScDropdownModule } from '@speak/ng-bcl/dropdown'; | |
import { ScTableModule } from '@speak/ng-bcl/table'; | |
/* use them in imports */ | |
@NgModule({ |
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 ExcludeClonedItemsCrawler : SitecoreItemCrawler | |
{ | |
protected override bool IsExcludedFromIndex(SitecoreIndexableItem indexable, bool checkLocation = false) | |
{ | |
var obj = (Item)indexable; | |
if (obj.IsClone) | |
{ | |
this.Index.Locator.GetInstance<IEvent>().RaiseEvent("indexing:excludedfromindex", (object)this.index.Name, (object)obj.Uri); | |
return true; | |
} |
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
<locations hint="list:AddCrawler"> | |
<crawler type="SitecoreExtensions.Search.ExcludeClonedItemsCrawler, SitecoreExtensions"> | |
<Database>master</Database> | |
<Root>/sitecore/content/Global Site</Root> | |
</crawler> | |
</locations> |
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
<locations hint="list:AddCrawler"> | |
<crawler type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch"> | |
<Database>master</Database> | |
<Root>/sitecore/content/Global Site</Root> | |
</crawler> | |
</locations> |
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
protected override bool IsExcludedFromIndex(SitecoreIndexableItem indexable, bool checkLocation = false) | |
{ | |
var obj = (Item)indexable; | |
if (!obj.Paths.FullPath.StartsWith(this.Root, System.StringComparison.OrdinalIgnoreCase)) | |
{ | |
this.Index.Locator.GetInstance<IEvent>().RaiseEvent("indexing:excludedfromindex", (object)this.index.Name, (object)obj.Uri); | |
return true; | |
} | |
return base.IsExcludedFromIndex(indexable, checkLocation); | |
} |
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 string Hello() | |
{ | |
return "Hello Sitecore Challenge!" | |
} |
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> | |
/// MongoDb sample health check | |
/// </summary> | |
/// <seealso cref="Healthcheck.Service.Customization.CustomHealthcheckRun" /> | |
public class MongoDbComponentHealth : CustomHealthcheckRun | |
{ | |
/// <summary> | |
/// Does the healthcheck. | |
/// </summary> | |
/// <param name="parameters">The parameters.</param> |
OlderNewer