Hi,
I think that the option of creating a new node from the views should be given as an option. I can see many examples where the user will want to edit only existing nodes, but not want to create new ones.

As a non-developer I can't really suggest how to do it code-wise, however, maybe - as a solution to that, we can add a new Views field "Node:Editable Node" - so when chosen the new node creation will be enabled.

Cheers,
Amitai

CommentFileSizeAuthor
#4 scenarios.jpg206.28 KBgmclelland

Comments

jasonwhat’s picture

+1 for this option. I was thinking of using this module (haven't tested yet so don't really know if it is right for it) in a situation where I have a listing of organizations, and a field for people that belong to that organization. The idea is that users could easily add contacts to an organization when viewing the organization node with a "contact" editable field. But I really like the idea of those "contacts" being nodes on their own. It might make a mess of this to add that option though, and there are a couple other "add node" module looking to do this.

amitaibu’s picture

Maybe this is a better approach for the task:
Show the new node creation if users selects View type as Editablefields - list/table. But hide it if user will choose another view, but will set the field as Editable.

This makes sense for example when using other kind of View type (Views Tabs for example) but still want to use this awesome functionality.

Christefano-oldaccount’s picture

This makes sense for example when using other kind of View type (Views Tabs for example) but still want to use this awesome functionality.

That's a great idea.

It would be good to have the node creation form in an optionally collapsible fieldset, as well.

gmclelland’s picture

StatusFileSize
new206.28 KB

I think having the new node form as a collapsible fieldset is great idea. This discussion is similar to what I am trying to do.

I can't seem to figure how to add the node creation form when a parent doesn't have any child nodes. Right now editablefields works ONLY when there are child nodes. When there are child nodes, it displays the editable fields + a node creation form to add a child node. When there are no child nodes it simply displays the headers of my table view with no child node creation form.

Maybe I'm missing something, but it seems like I should be able to add a child node from the parent's node creation form when there isn't any child nodes. I hope I am being clear in my explanation. See the attachment for an illustration.

If anyone knows how to do this, please let me know.

markfoodyburton’s picture

(Sorry for the delay, my subscription to these issues seemes to have stopped)

There was a bug, meaning the new item form didn't get shown if the list was empty... my fault - anyway, fixed now, and checked in, I'll be making a release shortly.

Making it an option - good plan -- I'll try and get round to it (unless somebody else wants to)

giorgio79’s picture

Version: 5.x-0.1 » 7.x-1.x-dev

Maybe in 7x? :)

damien tournoud’s picture

Version: 7.x-1.x-dev » 6.x-3.x-dev

I don't think it's in the scope of 7.x to do this. 7.x is implemented purely as a field formatter. It's not going to support creating new entities out of it.

mengi’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Per https://drupal.org/node/2148735, 6.x is longer maintained so issue is closed. If you wish to be a maintainer of the 6.x branch please create a new issue.