Open vitalybrandes opened 4 years ago
Can you create a PR ?
It’s for Admin, so it works in only admin theme or AdminTemplates
You can override Editors in a Theme I'm pretty sure of that. Have you tried adding it to your theme Views/OrchardCore.ModuleName/youreditor.cshtml folder? Make sure it sits in the same folder than what it is in your base module inside your Theme Views/YourModule folder.
No the original post is correct.
Editors must be added to
(which you choose is a matter of preference only)
They won't be found when placed in a front end theme, as the shape table will look in the admintheme shape table for editor shapes / views.
Can you create a PR ?
@sebastienros i am sorry, i have no idea how to do that :-(
@vitalybrandes I have not tested but you can try adding @attribute [Admin]
to your View
and see if it works.
Add important note to the help that the editor cdhtml file must be added to module and will not work in Theme!
https://docs.orchardcore.net/en/dev/docs/reference/modules/ContentFields/#creating-custom-editors