-
Good evening, I have to override a DisplayDriver because the default one do some validation that is strange for my point of view but I don't know if is correct or not. I have tried to add this code to my module in the 'Startup.cs' using a my version of 'LinkMenuItemPartDisplayDriver':
but when I start to test it, I have seen that this code register twice 'LinkMenuItemPart'. How can I do this in the right way? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I have solved in this way:
is it correct or exist a "best way"? |
Beta Was this translation helpful? Give feedback.
-
Ideally you can safely call multiple times
|
Beta Was this translation helpful? Give feedback.
Ok, I have found the problem. Is related to this:
https://docs.orchardcore.net/en/latest/docs/reference/modules/ContentFields/#customising-display-driver-registration