Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Philip Hayton 98 posts 435 karma points
    Sep 05, 2022 @ 12:19
    Philip Hayton
    0

    Create ContextApp with single model and nested collection

    Hi Matt,

    Is it possible to create ContextApps with non-collection models? For example I have a model like this:

    public class ExperienceSettings : EntityBase
    {
        public Guid Id { get; set; }
        public Guid UmbracoNodeId { get; set; }
    
        public bool AllowVariantMixing { get; set; }
        public int CutOffHoursBeforeEvent { get; set; }
    
        public ICollection<Schedule> Schedules { get; init; }
    }
    

    And I'd like a ContentApp like this:

    enter image description here

    Is that possible at all? Not a problem if not but would be nice!

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Sep 05, 2022 @ 13:55
    Matt Brailsford
    100

    Hey Phil

    Not currently no. Pretty much everything in Konstrukt is based around the collections so it's more about managing groups of data than individual settings.

    I guess that's going straight into managing a single model so maybe we could look in the future around having a single item mode that just goes straight into showing an editor for a single model 🤔

    Unfortunately at the moment your only option would be a custom content app you build yourself.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft