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
I created a View with a field of Megarows:Links and added a node add page like this :
Add|node/add/page
On clicking the link the Node add page is displayed properly but after clicking Save a AJAX error popups. The node gets saved but i am facing this error. Can anyone help or provide input on this.
Regards
Comment | File | Size | Author |
---|---|---|---|
#5 | views_megarow-node_add-2164505-5.patch | 4.27 KB | NWOM |
Comments
Comment #1
ArtusamakHi, Views megarow is not intended to support node creation because the core hardcoded redirections that couldn't be passed out.
I'm not going to provided support for it.
Comment #2
Frando CreditAttribution: Frando as a volunteer commentedI needed a node/add form in a megarow for a site. It actually is possible to implement quite easily. See attached patch. It includes two changes:
a) Make views_megarow suppress the redirection while creating a node to circumvent the error situation.
b) Add an option to refresh the view after closing the megarow, so that new rows will be included.
It works charmingly well.
Note on a): This might actually make it possible to remove the takeover of the node/edit and user/edit page callbacks - what was the original motivation to do it that way instead of using a global variable as in my patch? It's both hacks IMO, and the global variable is less intrusive.
Comment #3
Frando CreditAttribution: Frando as a volunteer commentedRemoved debug leftovers in last patch.
Comment #4
gngn CreditAttribution: gngn at Computer Manufaktur GmbH commentedI am using #3 for some time now and it's working fine.
Thanx.
Comment #5
NWOM CreditAttribution: NWOM commentedThe patch no longer applied against the latest stable or dev. Here is a re-roll. Thanks by the way for working on this!