Replies: 3 comments
-
|
I like it! This feels like a decent addition as it helps emdash build real editorial workflows. Strong-agree that it should default to (or perhaps only) make a draft post. The Additional considerations:
Useful tests:
|
Beta Was this translation helpful? Give feedback.
-
|
Agree with @masonjames . One specific edge case I want to note because it has not been explicitly mentioned: Make sure all required fields are mapped, otherwise content creation will always fail. |
Beta Was this translation helpful? Give feedback.
-
|
I created a PR for this, #2099 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Editorial sites commonly need form submissions to flow into the content pipeline as draft entries. This is a well-established CMS pattern -- WordPress plugins like Ninja Forms and Gravity Forms have "create post from submission" as a feature.
I'm migrating a newsroom from WordPress to EmDash. They have event submission, obituary submission, and press release submission forms that currently create draft custom post types in WordPress for editorial review before publishing. Today, plugin-forms stores submissions in its own inbox, which is useful for review, but there's no path from submission to content entry without manual re-entry.
Proposal
Add an optional contentMapping setting to FormSettings that, when configured, creates a content entry (default: draft) in a target collection after a successful submission. The submission is still stored in the forms inbox regardless -- this is additive.
Capability change: The plugin would add content:write to its declared capabilities, giving it access to ctx.content in handlers. This only activates for forms that have contentMapping configured.
Happy to open up a PR to add this functionality.
Disclaimer -- Written with AI but reviewed by me before posting.
Beta Was this translation helpful? Give feedback.
All reactions