Geta / EpiCategories

An alternative to Episerver's default category functionality, where categories are instead stored as localizable IContent.
Apache License 2.0
14 stars 13 forks source link

AllowedTypes #14

Closed Drol closed 5 years ago

Drol commented 6 years ago

If I have a property like this.

[Categories]
[Display(Name = "Ämnen", Description = "Ämnen", Order = 11)]
[AllowedTypes(typeof(SubjectCategory))]
public virtual IList<ContentReference> Subjects { get; set; }

And have a tree with categories like this: -Marketing (SubjectCategory) -IT (AnotherCategory) --Kommunication (SubjectCategory) --Issues (SubjectCategory) --Projects (SubjectCategory)

IT won't show up and SubjectCategories under it won't show up. Only Marketing.

Is there a way to solve this? Or is it a bug?

MattisOlsson commented 5 years ago

This was not supported previously but now it is. I just uploaded version 1.2.7 to Episerver NuGet feed so it should be available in the next few days. Thanks for reporting!

Drol commented 5 years ago

Thanks, it works perfectly now :-)