webiny-js icon indicating copy to clipboard operation
webiny-js copied to clipboard

Embedable Content Entry Form

Open Pavel910 opened this issue 4 years ago • 2 comments

This is:

  • Feature request

Detailed Description

It would be helpful for many use cases to be able to render the content entry form for any content model, anywhere you wish, and not just in our specific content entry UI. The idea here is to be able to do something along these lines:

// New entry
<ContentEntryForm modelId={"book"} onSubmit={data => doWhatever(data)} />

// Existing entry
<ContentEntryForm id={entryId} modelId={"book"} onSubmit={data => doWhatever(data)} />

This would allow us to solve several problems, like mounting the form on any custom route, as well as simplify the implementation of a modal dialog for ref field, where you would create a referenced entry on the fly.

These requests were mentioned by zoezoezoe and ucanlendit

Action items

  • [ ] research how this form works currently and what dependencies it has
  • [ ] write down the list of things that need to be done in order to allow the proposed API

Pavel910 avatar Aug 05 '21 18:08 Pavel910

This issue is stale because it was opened 120 days with no activity. Remove the "stale-issue" label or leave a comment to revive the issue. Otherwise, it will be closed in 7 days.

webiny-bot avatar Feb 20 '22 07:02 webiny-bot

This issue is stale because it was opened 120 days with no activity. Remove the "stale-issue" label or leave a comment to revive the issue. Otherwise, it will be closed in 7 days.

webiny-bot avatar Jun 21 '22 07:06 webiny-bot