Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ namespace Foundation.Features.Blocks.BootstrapCardBlock
[ImageUrl("/icons/cms/blocks/CMS-icon-block-03.png")]
public class BootstrapCardBlock : FoundationBlockData, IDashboardItem
{
[GroupingHeader("Card Alignment Options")]
// Card alignment -- left/center/right
[SelectOne(SelectionFactoryType = typeof(CardAlignmentSelectionFactory))]
[Display(Name = "Card alignment",
Order = 5,
GroupName = SystemTabNames.Content)]
public virtual string CardAlignment { get; set; }

[GroupingHeader("Card Text Properties")]
[GroupingHeader("Card Text and Content Properties")]
[CultureSpecific]
[Display(Name = "Card header",
Order = 10)]
Expand Down Expand Up @@ -64,13 +65,15 @@ public class BootstrapCardBlock : FoundationBlockData, IDashboardItem
Order = 60)]
public virtual string CardFooter { get; set; }

[GroupingHeader("Card Image Properties")]
[CultureSpecific]
[UIHint(UIHint.Image)]
[Display(Name = "Card image (optional)",
Order = 80,
GroupName = SystemTabNames.Content)]
public virtual ContentReference CardImage { get; set; }

[GroupingHeader("Card Button and Link Properties")]
[CultureSpecific]
[Display(Name = "Card button text (button hidden if blank)",
Description = "Text to show for card button -- button hidden if blank",
Expand Down Expand Up @@ -100,6 +103,7 @@ public class BootstrapCardBlock : FoundationBlockData, IDashboardItem
[MaxElements(3)]
public virtual LinkItemCollection CardLinks { get; set; }

[GroupingHeader("Misc Properties")]
[Display(Name = "CSS class",
Description = "Custom CSS class for card (to help with custom styles)",
Order = 200,
Expand Down
5 changes: 5 additions & 0 deletions src/Foundation/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Advanced.CMS.AdvancedReviews;
using Advanced.CMS.GroupingHeader;
using EPiServer.Authorization;
using EPiServer.Cms.TinyMce.SpellChecker;
using EPiServer.ContentApi.Cms;
Expand Down Expand Up @@ -229,6 +230,10 @@ public void ConfigureServices(IServiceCollection services)

// Add ContentManager
services.AddContentManager();

// Add GroupingHeader
// https://github.com/advanced-cms/grouping-header/
services.AddGroupingHeader();
}

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
Expand Down