Try our conversational search powered by Generative AI!

Custom rendering for EpiServer forms

Vote:
 

I am rendering my content areas in a same way as Alloy demo site and everything works fine. 

I've created a CustomContentAreaRenderer and then in my DependencyResolverInitialization I've assigned my class to the container

    container.For().Use();

However, this render doesn't work on forms. In the documentations I can see that they've created similar ContentAreaRenderer class, but then to use it, they've added a special renderer to the HtmlHelper and then changed the namespace in FormContainerBlock.ascx to use the new one. 

If then I should copy then FormContainerBlock from the zipfiles to my project (views/shared/ElementBlocks) and then edit that in order to overwrite EpiServers default form container which means that it might break in next releases.

Isn't there any oher way to customize FormContainers rendering the same as normal content areas? 

#177632
Apr 14, 2017 18:09
* 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.