Alloy.Models.Blocks.PageListBlock.SetDefaultValues C# (CSharp) Method

SetDefaultValues() public method

Sets the default property values on the content data.
public SetDefaultValues ( ContentType contentType ) : void
contentType ContentType Type of the content.
return void
        public override void SetDefaultValues(ContentType contentType)
        {
            base.SetDefaultValues(contentType);

            Count = 3;
            IncludeIntroduction = true;
            IncludePublishDate = false;
            SortOrder = FilterSortOrder.PublishedDescending;
        }
PageListBlock