[drupal-devel] Need a quick hand with wiki.module hack

Tom Dobes tdobes at gmail.com
Sun Jul 17 07:20:30 UTC 2005


On 7/16/05, Steve Dondley <s at 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);



More information about the drupal-devel mailing list