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
| protected async Task<PurchaseResult> WasItemPurchased(string productId, ItemType type) | |
| { | |
| var billing = CrossInAppBilling.Current; | |
| try | |
| { | |
| var connected = await billing.ConnectAsync(type); | |
| if (!connected) | |
| { |
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> | |
| <glassMapper.getGlassLoaders> | |
| <processor type="MyProject.Feature.FeatureGlassLoader , MyProject.Feature" /> | |
| </glassMapper.getGlassLoaders> | |
| </pipelines> | |
| </sitecore> | |
| </configuration> |
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 class Demo | |
| { | |
| public virtual Guid Id { get; set; } | |
| public virtual string Title { get; set; } | |
| public virtual DateTime Date { get; set; } | |
| public virtual string Url { get; set; } | |
| } |
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 class CodeQuiz1 | |
| { | |
| public virtual IEnumerable<CodeQuiz1> Children { get; set; } | |
| public virtual string Title { get; set; } | |
| public virtual ParentModel Parent { get; set; } | |
| public string Name { get; } |
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
| var options = new GetItemByPathOptions | |
| { | |
| Path = "/sitecore/content/home" | |
| }; | |
| var model = sitecoreService.GetItem(options); | |
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
| <div> | |
| @Html.Sitecore().Placeholder("main"); | |
| </div> |
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 void DoWork() | |
| { | |
| var service = new SitecoreService("master"); | |
| var model = service.GetItem<ITitles>("/sitecore/content/home/page", InferType:true); | |
| var title = model.Titles.Title; | |
| if (model is Page) |
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 class PageContentItemsService | |
| { | |
| public readonly ID PageContentItemFolder = | |
| new ID(ItemTree.Templates.Site.PageContentItems.Id); | |
| public bool IsPageContentItemsFolder(Item item) | |
| { | |
| return item.TemplateID == PageContentItemFolder; | |
| } |
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 class PageContentItemsView : BucketDataView | |
| { | |
| public const string HomePath = "/sitecore/content/MySite3/Home"; | |
| private const string XmlControlKey = "xmlcontrol"; | |
| private const string SelectRenderingDatasource = "Sitecore.Shell.Applications.Dialogs.SelectRenderingDatasource"; | |
| protected PageContentItemsService ContentItemService | |
| { | |
| get; set; |
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 class Glass1 | |
| { | |
| public virtual string Title { get; set; } | |
| } | |
| [TemplateMapping("{76036F5E-CBCE-46D1-AF0A-4143F9B557AA}", "InterfaceMap")] | |
| public partial interface IFortis1 : IItemWrapper | |
| { | |
| ITextFieldWrapper Title { get; } | |
| } |
NewerOlder