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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Artusamak’s picture

Status: Active » Closed (works as designed)

Hi, 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.

Frando’s picture

Title: Node Add - Throws AJAX HTTP error 200 after clicking Save » Add support for node/add
Version: 7.x-1.2 » 7.x-1.5
Category: Bug report » Feature request
Priority: Critical » Normal
Status: Closed (works as designed) » Needs review
FileSize
4.32 KB

I 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.

Frando’s picture

FileSize
4.27 KB

Removed debug leftovers in last patch.

gngn’s picture

I am using #3 for some time now and it's working fine.
Thanx.

NWOM’s picture

FileSize
4.27 KB

The patch no longer applied against the latest stable or dev. Here is a re-roll. Thanks by the way for working on this!