change to booktype not reflecting
geniekids - December 21, 2007 - 12:28
| Project: | Nodetype |
| Version: | 5.x-1.x-dev |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I used nodetype module to change story nodes to books/book pages so users can better navigate through different books and chapters.
Nodetype is working fine making the story node a book page, but when I go to Administer -> Content Management -> Books those pages are not listed. When I tried to associate the next book page with what should be the parent, it's not listed in the drop down to do that. I don't know if this makes any sense, but I don't seem to have a link to "add a child page" on the ones I switch using nodetype.

#1
I am looking to port a number of articles into books, and found a similar problem. Although this module is great for quickly changing the node type, there are a few more steps to take to get it to work when dealing with books.
It also involves modifying the book db table, using phpmyadmin, and you should install the devel module to make things easier: http://drupal.org/project/devel
Here's what I did to get this to work with books. Use at your own risk, as it requires modifying your database directly.
1. create the parent book you want to add nodes to
2. edit a node and change the type to 'book page', and submit.
3. re-edit the node (now 'considered' a book page), assign the parent, and submit.
Now, this is where the devel module comes in handy. Click on the 'dev load' tab for the node, and copy down the vid and nid for the node.
4. using phpmyadmin, access the book table in your site database. If you browse to the last page, the very last listing should correspond to the parent page you created in step 1. You can confirm this by accessing that node.
5. using phpmyadmin, insert a new row into the book table. The nid and vid should be set to the values for the node, which you got via the dev load tab. The parent should be set to the nid for the book page you created in step 1.
Once you complete step 5, everything will now be set up correctly. Granted, it's a lot of manual work, and I'm sure a few simple SQL queries could do the job in a much quicker fashion, but that's a little beyond me. ;)
Brad
#2
thanks brad - but this looks like too complicated work for my current understanding :-)
- i will possibly just delete all my "story pages" and create new books - at this stage since they are only a dozen
this looks simpler
#3
Check out this post: http://drupal.org/node/203143
A much easier method, something I had completely forgotten about. Much quicker and less hassle than the method I outlined above.
Brad
#4
Quite by accident, I found out that after changing the node type to Book, if you select Create New Revision (under Publishing Options), the node type change seems to 'take'. Then you need to go into Edit again and select the book parent if needed, and select Create New Revision again. Hope that will help someone who is having this problem!