New node - new book root
nbchip - April 19, 2008 - 21:32
Is ti possible to automaticly create Book root when creating new specific Content type?
Example I have first Content Type called ARTICLE , and the second CT called ARTICLE PAGE...
so When ever creating Article i want it to be Book root.
Also when having lots of books and pages, it would be nice to seperate adding node in the book structure in two select list. First u choose the exact book u want to put node into, and then the place in the structure of that book...
How DB intensive is printing book layout?
Is there a better way to have some hierarchy inside articles?
Thx.

Which ever content-type you
Which ever content-type you create from the 'create content' menu, they always start at as the Book parent. Or at least that's how I remember it.
It's only when you visit a book page, and then click 'add child page' that the books parent is set in the node/add form.
But to answer your question, some simple hook_form_alter() function magic in a custom module should allow you to default the parent selector depending on the content-type name. You may even be able to get away without writing any code, and instead using the form alter module available here on d.o.
I've not used Drupal 6's Book/outline system so am just going off Drupal 5 and 4.7 on the above.
--
Ixis (UK) providing Drupal consultancy and Drupal theme design. Check the portfolio.
See BookMadeSimple
I've created a module (BookMadeSimple) which can do this.
For more explications, see BookMadeSimple home page
Very nice module
Does just what i need. There is a issue with closing php tags in .module and i would have some feature requests but link to module now gives - Access denied.
Thx.
Post to code.google.com
The project has been disabled by administrators. Will correct this.
For the moment, please post your comments or issues to http://code.google.com/p/mmr-drupal-modules/wiki/BookMadeSimple
BookMadeSimple homepage avaliable
BoolMadeSimple HomePage is now avaliable !