Currently there is one huge list of all of the potential children on the "attach existing node" page. I'm looking for an autopopulate box or better method of filtering for selection.

Comments

chien_fu’s picture

I second this request, it would be a huge benefit if there was a sortable / filterable or even auto-complete field.
This is mentioned in the source code at line 41. :)

yannickoo’s picture

Yeah. It would be cool when the (in my case) playlist choosing is do with modalframe / jquery ui dialog

chien_fu’s picture

Category: support » feature

I guess it makes more sense that this is a feature request.

yannickoo’s picture

Yeah, but we won't get an answer or? ;)

chien_fu’s picture

Got it. I can't seem to find it again, but I found a good answer to this issue using views.

Create a new view filtering content types that you want to attach.
Create a filter on Node Title and expose it.
Create one page display for attaching children, and one page display for attaching parents.
Add fields that you want to display and output a field as a link.
Create links as follows:
To attach parents: relativity/addparent/%1/child/[nid]
To attach children: relativity/addparent/[nid]/parent/%1

You must also have the argument (%1) passed through the url linking to the view page.
If you use a Global:Null argument type it will not affect the view list.

Works like a charm!

Oh yeah.. I just remembered, of course you need this patch to be able to add parents:
http://drupal.org/node/350778