17 Jul
2005
17 Jul
'05
9:20 a.m.
On 7/16/05, Steve Dondley <s@dondley.com> wrote:
drupal_goto('node/add/book', 'edit[title]='. $dest_raw . rawurldecode('&edit[parent]=66'));
The idea here being that when the user clicks on a wiki link, a new form for a book entry shows up (instead of a story) and a the correct book (which correlates to tid of '66') is automoatically selected from the drop-down menu.
But Drupal doesn't seem to recognize the &edit[parent]=66 part for selecting the book in the drop down menu. Is this possible? If so, what am I doing wrong?
The "add child page" links take the form "node/add/book/parent/###" where ### is the nid of the parent node. It looks like you want drupal_goto('node/add/book/parent/66', 'edit[title]='. $dest_raw);