[support] How to create "Edit & Save" Action?

Larry Garfield larry at garfieldtech.com
Tue Jan 20 02:21:11 UTC 2009


On Monday 19 January 2009 8:10:33 pm John Thomas wrote:
> Michael Prasuhn wrote:
> > Depending on what you are doing with the viewfield, you may be better
> > served with the View Attach module. You can check it out here:
> >
> > http://drupal.org/project/views_attach
> >
> > The place where this would be most useful, is when you are using a
> > viewfield to attach a view that is the same for every node of a
> > certain type. This is very common in image galleries for instance,
> > where you may want to reference all nodes that have a node reference
> > to the current node. This allows you to setup the view, and attach it
> > to all nodes of a specific type.
>
> Mike,
>
> That sounds like a great solution (i.e. eliminate the need to edit and
> save).  Do you know if I can attach multiple views_attach fields to a node?

Yes you can.  Views_attach creates a new display type for Views (along with 
Block, Page, etc.) that attaches itself to nodes of a given type that you 
specify.  You can also use an argument that takes a nid from the URL (either 
nid or a nodereference) to make the view contextual to the node it's on, which 
is where the fun stuff happens.  You can then order where that view will appear 
using the CCK Manage fields page.  It works for users, too.

At least that's the intent.  the drag and drop ordering is a little broken at 
the moment. :-)  I plan to release a stable version as soon as I figure out why 
it's broken and how to fix it.  Hopefully later this week.

-- 
Larry Garfield
larry at garfieldtech.com


More information about the support mailing list