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

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
StatusFileSize
new4.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

StatusFileSize
new4.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

StatusFileSize
new4.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!

andrii momotov’s picture

Status: Needs review » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Everyone can apply the patch above (not tested by the maintainers) to their D7 projects.
If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.