Try our conversational search powered by Generative AI!

CategoryListEditorDescriptor is not being called

H F
H F
Vote:
 

Hello everyone,

I have implemented the custom category list selector based on this thread:

https://world.episerver.com/forum/developer-forum/-Episerver-75-CMS/Thread-Container/2015/5/multiselect-category-picker-for-7.5/

(i have EpiServer version 11 and i did the update to the code, minor)

But..  when i am going for the selection of the category for one of the my properties:

I am somehow getting all the categories available and not the ones under the newly defined category root - AirTaxonTopicCategory for that property.

I am trying to set the breakpoint to 'ModifyMetadata' in my CategoryListEditorDescriptor but it never hits it...

so, the question I like to clarify in this post - is it possible to to use the debugger breakpoint for 'ModifyMetadata' method in my 'CategoryListEditorDescriptor' class?


Is this the method that being called very early in the process, sets up the roots for all the CategoryList properties according to the attribute's settings and not available in the run time?

another question (i think related) - is there some sort of caching for the categories list? Can I turn it off? As it seems the categories list and roots that appear for
my properties are very sporadic.

thank you for your help and suggestions,
HF

P.S. one of my properties of type CategoryList, which in editor when selected list ALL of the categories, and not the ones under the root specified:

        [Display(Name = "Topic", Description = "Topic categories to choose from", Order = 3, GroupName = CustomTabNames.Taxonomy)]
        [AirCategorySelection(RootCategoryType = typeof(AirTaxonTopicCategory))]
        [Searchable]
        public virtual CategoryList TaxonomyTopic { getset; }



#195123
Edited, Jul 13, 2018 20:21
H F
Vote:
 
#195124
Jul 13, 2018 20:25
Vote:
 

Hi.

Did you ever solve this issue? I'm seeing the same behavior. I actually tried throwing an exception from the ModifyMetadata, which didn't have any effect.

#199927
Dec 18, 2018 8:04
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.