- Issue created by @devanbicher
- 🇺🇸United States jrockowitz Brooklyn, NY
I think we need to create a MercuryEditorTasksInlineEntityForm service for just the preprocess hook.
- First commit to issue fork.
- @immaculatexavier opened merge request.
- 🇺🇸United States devanbicher
Here are the steps to setup a site to expose this functionality
- Enable mercury editor and inline entity form
- Add a new content type
- Add a layout paragraphs field
- Enable that content type with mercury editor
- Create a paragraph
- In that paragraph, add a content reference field that references nodes
- Have its reference use the content type you created above, save
- Edit the new paragraphs' form mode
- For the content reference field in this paragraph change the form mode to 'Inline entity form - complex'
- Go back to your content type and add this paragraph to the layout paragraphs field
- Create a new piece of content (of the type you created in step 3)
- You just need to title it, you don't need to add any other content, save
- Create another piece of content of the same type
- Edit the layout of that new piece of content
- Add a paragraph of the type you created in step 6
- In the content reference field of this paragraph, select 'add an existing node'
- Search for the piece of content you created in step 12 (it should probably be the only one in the list) and select it
- After the entity select modal goes away there should now be another button after 'edit' that says 'Layout'
- That 'layout' button in the inline entity form is what this patch adds.