Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi Merlin,
How do I create the "node/%/edit"? I mean, I see the 'node content', but how can I switch it to "Edit" mode?
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedset url to node/%/edit
On the 'advanced' settings page, Add 'node edit form' as the first argument.
On the content page, add 'Form' for the basic form; add other pieces as you like. They're all optional.
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedBTW, I still need a tutorial written for how to do this, and probably more options will appear.
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedComment #4
amitaibuCheck it out:
---
Panels 2 allows you to override the Edit form of a node. The advantage is clear for developers and non-developers as well, as placing difference blocks in different places is all made through an easy to use UI.
Let's override the Edit form of all the story nodes and divide it into two columns. On the left will place the content form, and on the right the node comments.
1. In the panel settings 'Add' a 'Two Column' panel.
2. Panel name = Override node edit
3. path = node/%/edit
4. Click 'next'
5. On the top tabs select the 'Advanced'. Don't worry if you're not advanced, its pretty simple.
6. In the arguments select list, select the 'Node edit form' and click 'Add argument'
7. On the JavaScript window that opens enable the checkbox next to 'Story'. This means the panel will grab (i.e. override) all the nodes edit form of the story content type.
8. In 'Own display' select also the story. This will make sure, that later if you wish to create a different panel for different content type, your life will be easier. If you wish all content types to look the same, skip this operation.
9. 'Save' the JavaScript, and 'Save' on the bottom of the page!
10. Select the 'content' tab.
11. If you didn't skip operation 8, under it you will notice under set of tabs: 'Default' and 'Node Edit 1 form'. Select the 'Node edit 1 form'
12. Add content to the left panel, and the right. Let your imagination and geekness lead your way – on the 'Form' you have all the basic elements of the Edit node form. On the right add the node comments.
13. Save your panel
14. Create a story node and submit it
15. Edit the node – viola, panels has overridden the Edit form
For the lazy among you, you can import the panels:
Comment #5
merlinofchaos CreditAttribution: merlinofchaos commentedWhen this is integrated into http://groups.drupal.org/node/7350 this issue may be marked fixed.
Comment #6
amitaibuhttp://groups.drupal.org/node/7688
Comment #7
(not verified) CreditAttribution: commentedAutomatically closed -- issue fixed for two weeks with no activity.