OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.37k stars 1.12k forks source link

Added checks to properly display CustomForm content items at front end #8751

Closed AndreaPiovanelli closed 5 months ago

AndreaPiovanelli commented 5 months ago

I know this is a deprecated module, but we are using its features for several products, so we are still mantaining it.

This patch checks that the publish button is properly displayed only when needed (content is draftable AND is set to show the publish button. It also ensures the detail shape is displayed only when needed (e.g. it's not displayed anymore when display type is "SummaryAdmin", like inside a ContentPickerField select dialog).

Added EditorBuilderWrapper and its interface to make CustomForms easily extensible via other modules.