Reputation: 24522
I have enabled the Custom Forms module and added a new Custom Forms widget with the content type set as a custom content type. All works fine, however, I want to override the HTML generated.
I can see that the \Modules\Orchard.CustomForms\Views\Items\Create.cshtml
is responsible for rendering the form. But how do I override this file?
I have tried creating a custom \Themes\TheThemeMachine\Views\Orchard.CustomForms\Item\Create.cshtml
view but that doesn't work.
Upvotes: 0
Views: 980
Reputation: 24522
\Views\Orchard.CustomForms\Item\Create.cshtml
is correct for overriding a custom form item.
However if you are using a widget to render the custom form, as in my case, then you need to override Parts.CustomForm.Wrapper.cshtml
in the Views
folder of your theme.
This post in the Orchard forums gave me the answer.
Upvotes: 1