By mr.morton on
Hi,
I am trying to programmatically add book nodes to my drupal installation.
I have no problem adding a single node to my installation via the API/PHP.
But I have a hard time getting my book nodes arranged in a book outline.
I have added the following nodes via PHP
- MY BOOK
- MY BOOK - CHAPTER 1
- MY BOOK - CHAPTER 2
- MY BOOK - CHAPTER 3
- MY BOOK - CHAPTER 4
- MY BOOK - CHAPTER 5
But how do I arrange them so the MY BOOK-node is the book and the CHAPTER-nodes is in the book outline...
Hope someone can help...
Kind Regards
Morten Madsen