Can we show the node edit form in a custom block and show that on a node view page?
-
Welcome to Drupal Answers! The question is too broad for us. If you are asking about code to write, you should show what code you wrote so far; if you are asking about modules, requests for modules are off-topic for us.– avpaderno ♦Commented Jan 12, 2017 at 16:06
-
I think this newly created module drupal.org/project/same_page_preview might be what you were looking for. Adding as a comment since the question got closed back then.– rkollerCommented May 13, 2023 at 15:38
Add a comment
|
1 Answer
You could use Form Block module and place the block above your view block. Some details about it (from its project page):
Enables the presentation of user registration, site wide contact, or node creation forms in blocks.
OR go with Clive's answer to this Q: Why doesn't loading a form in the view header work? and load the form in your View's header.
-
On each node/{nid} there will be a edit link on the right top. Clicking on the link will open a popup having node edit settings including menu settings, url path etc, where user can update the node data.– JessicaCommented Jan 12, 2017 at 12:32
-
2Give this a try Creating modal windows (pop-ups) in Drupal 8: full tutorial Commented Jan 12, 2017 at 12:41
-
1) Need to embed node/{nid}/edit form in a custom block and it will place on its node/{nid} page.– JessicaCommented Jan 12, 2017 at 16:02
-
1Please check my minor edit. If the quote is not appropriate, feel free to adapt, or even rollback if you don't like it. IMO it reduces the risk of your answer being considered as "link only". OK? Commented Jan 13, 2017 at 21:37