Hello everyone,

I have problem with Book module , after i create a book i can't see the parent to create a child page!!

any idea what is happening here??

see image:

CommentFileSizeAuthor
#10 menu_book_outline_published.patch907 bytesjoel_osc
error.jpg52.42 KBfaraj1978

Comments

schnorte’s picture

same for me. cannot see what the problem is. any hints?

schnorte’s picture

seems to happen when nodes in the hierarchy are not published.

dpearcefl’s picture

Status: Active » Postponed (maintainer needs more info)

Is this issue still occurring in the current version of Drupal v6?

dpearcefl’s picture

Priority: Critical » Normal
dpearcefl’s picture

Status: Postponed (maintainer needs more info) » Active
joel_osc’s picture

I am seeing this issue as well. If the parent page is unpublished then the dropdown will show empty as posted in error.jpg. Once the parent is published again then the dropdown will show properly again. It would be nice if the dropdown was independent of the node status so that you could create a book and then publish it once the structure and all pages have been completed.

dpearcefl’s picture

joel_liquidcms, are you willing to work on this?

My concerning is if you were able to select an unpublished node as the parent for a published node, what breaks?

I rather doubt anything will happen here unless someone comes forward to champion this cause. Even then, it may not happen in D6 or D7.

joel_osc’s picture

I understand what you mean about breaking other things. I would be willing to take some time to look at the consequences of the change. My client is in the process of publishing 400 books on their site, so I think it would be worth doing some testing...do you have the code required to change this behavior or will I need to develop a patch as well? Either way is fine. Thx.

dpearcefl’s picture

Since you have the need, I'd recommend you doing making the patch. Please be aware that a patch like this may not be accepted in the D6 core codebase.

joel_osc’s picture

StatusFileSize
new907 bytes

I have created the attached patch - just a very basic change to menu_tree_check_access in menu.inc that checks if a user has 'administer book outlines' access, and if so will return unpublished book pages as well. In doing some basic tests you can now put together a book made up of unpublished book pages and administer the page order and titles using the book administration page. Note that there is one behavior which makes sense, that if you have an unpublished parent with published children, that whole part of the tree (published and unpublished) will not be available for viewing to a normal user.

Will continue testing with client to see if any issues arise and post results. Comments on a better solution are very welcome.

joel_osc’s picture

Just found this patch...same concept: http://drupal.org/node/26552#comment-3038376 and includes fix for book outline to show unpublished book in the book selector.

Anonymous’s picture

Hi

Publish the main book page, then try. If u dont publish main book page,u wont see add child. I had this problem. I have many book pages in http://vision4life.in. I have only one problem that child lists are too long, is it possible to break the main page and add a read more / next page link? Will be grateful, if anyone can help.

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.