mattbrailsford / umbraco-fluidity

A fluent CRUD user interface generator for Umbraco
https://our.umbraco.org/projects/backoffice-extensions/fluidity/
Apache License 2.0
48 stars 40 forks source link

Multiple Fluidity Tree Items causes dashboard to not show content #59

Closed jonrandahl closed 5 years ago

jonrandahl commented 6 years ago

I have two tree items set as per the instructions: treeConfig.AddCollection<Competition>(...); and treeConfig.AddCollection<Entry>(...);

When I load the section in the back office there is no content in the summary tab?

2018-06-25_16-50-58

Steps to reproduce:

  1. Create multiple tree items under a single section:

    
    public class FluidityBootstrap : FluidityConfigModule
    {
    public override void Configure(FluidityConfig config)
    {
      config.AddSection("Competitions", "icon-trophy", sectionConfig =>
      {
        sectionConfig.SetTree("Competitions", treeConfig =>
        {
          treeConfig.AddCollection<Competition>(c => c.Id, "Competition", "Competitions", "A listing of competitions held", "icon-medal", "icon-medal", collectionConfig =>
            {
              ...
            });
          treeConfig.AddCollection<Entry>(e => e.Id, "Entry", "Entries", "A list of entries to the competitions", "icon-poker-chip", "icon-poker-chip", collectionConfig =>
            {
              ...
            });
        });
      });
    }
    
    }


2. Open the section in the back office.
mattbrailsford commented 6 years ago

Hi Jon,

This is expected behaviour as the summary dashboard only shows collections for which ShowOnDashboard has been set to true so out of the box it will be empty.

jonrandahl commented 6 years ago

So I need to add collectionConfig.ShowOnDashboard(); to the collections I want to show there ... got it!!!

2018-06-25_17-46-29

mattbrailsford commented 6 years ago

That is correct yes

On Mon, 25 Jun 2018, 5:47 pm Jon R. Humphrey, notifications@github.com wrote:

So I need to add collectionConfig.ShowOnDashboard(); to the collections I want to show there! [image: 2018-06-25_17-46-29] https://user-images.githubusercontent.com/39102/41863787-c45fbe16-789f-11e8-8f20-51b750f5f49e.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/umco/umbraco-fluidity/issues/59#issuecomment-400019116, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgLyZ3FhJ2VIHOwwy8zjJNTsAEZGdqcks5uARQOgaJpZM4U2aw5 .