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.ComponentModel.DataAnnotations; | |
using EPiServer.Core; | |
using EPiServer.DataAbstraction; | |
using EPiServer.DataAnnotations; | |
using DigiOne.Core.DataAbstraction; | |
using DigiOne.Core.Styles; | |
using EPiServer; | |
namespace SomeName.Project.Areas.Layout.Models |
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
[Display( | |
Name = "Autoplay", | |
Description = "Autoplay", | |
GroupName = SystemTabNames.Content, | |
Order = 70)] | |
public virtual bool Autoplay { get; set; } | |
[Display( | |
Name = "Width", | |
Description = "Width", |
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
////Show only commerce content | |
[UIHint(EPiServer.Commerce.UIHint.CatalogContent)] |
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 EPiServer.Core; | |
using EPiServer.DataAnnotations; | |
using EPiServer.Framework.DataAnnotations; | |
namespace SomeName.Project.Media | |
{ | |
[ContentType] | |
[MediaDescriptor(ExtensionString = "flv,mp4,webm,ogv")] | |
public class VideoFile : VideoData | |
{ |
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
@{ | |
var uniqueId = string.Format("carousel-{0:N}", Guid.NewGuid()); | |
} |
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.Collections.Generic; | |
using System.Linq; | |
using EPiServer.Shell.ObjectEditing; | |
namespace Project.Business.Selection | |
{ | |
public class ResourceIconSelection : ISelectionFactory | |
{ | |
public IEnumerable<ISelectItem> GetSelections(ExtendedMetadata metadata) | |
{ |
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
var category = article.Category.Any() ? Category.Find(article.Category.First()).LocalizedDescription : string.Empty; |
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 readonly IContentLoader _contentLoader; | |
////... | |
var children = | |
FilterForVisitor.Filter( | |
_contentLoader.GetChildren<TesArticlePage>(currentPageReference, LanguageSelector.AutoDetect())) | |
.OfType<TesArticlePage>() | |
.Select(this.toArticleListItem); |
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
git reset --soft HEAD^ | |
git stash | |
git pull | |
git stash apply |
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 override void SetDefaultValues(ContentType contentType) | |
{ | |
base.SetDefaultValues(contentType); | |
Height = 240; | |
Width = 320; | |
} |
OlderNewer