[drupal-devel] Need a quick hand with wiki.module hack
I hacked the following line in the wiki.module: drupal_goto('node/add/story', 'edit[title]='. $dest_raw); I want to change it to: 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?
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);
participants (2)
-
Steve Dondley -
Tom Dobes