Hello. I have two content types. A and B. I have this configuration:
For A:
+ Select content-types allowed as child.
- B
+ Auto create book main page
For B:
+ Select content-types allowed as parent
- A
+ Forbid creation of book main page
+ Content type can only be created inside a book

In permission (for registered users):
+ Book module:
- add content to books
- create new books
+ book_made_simple module (nothing)

In Bookmadesimple settings
+ Select node types that can be included in a book:
- B
+ Select node types to auto-create main book page
- A
In book settings:
+ Allowed book outline types:
- All types (is this correct?)

Please, help me. I have try many conbinations.... Only the admin add automatically pages to the books. When I click on "Add !content-type" the child doesn't add to the book. Why? Thanks in advance. Sorry for my english....

Comments

MarcElbichon’s picture

You must set "administer book outlines" for book permissions.
Bookmadesimple settings are default values for content-type which don't declare settings in content-type settings page. So you may omit this step.

kenpuu’s picture

Thanks. But I have already selected that option and nothing... Another idea?

MarcElbichon’s picture

When you said "When I click on "Add !content-type" the child doesn't add to the book", is this mean than no page is shown or page is not a child book after saving ?
if latter, can you set "show ouline section in form element" and verify than book main page is correctly set before saving.

kenpuu’s picture

Thank you very much!! That's solved my problem!! Is there any way to disable that form and select by default the parent's book? Thanks!

MarcElbichon’s picture

BMS should select by default parent's book. If not, there's a problem.
So can you post me HTML source code of the parent page ?

kenpuu’s picture

StatusFileSize
new4.88 KB

This is the html source. I hope it's useful.

MarcElbichon’s picture

Can you

  • insert this code line 208 in book_made_simple.module
    print_r($node);
  • Create a new child from parent page (some text would be printed)
  • Send me HTML source
kenpuu’s picture

StatusFileSize
new11.77 KB

Here you have. I don't know if i've made right.

MarcElbichon’s picture

From your attachment, parent book seems to be well set if url is /node/xxx&parent=129.
Can you confirm that ?
So, what happens if you save the node ?
If it doesn't work, edit the new node and verify in outline section that parent book is well set.
You said this is working for admin user, not for others, right ?
Can you post screenshots

  • of the node before creation
  • of the node in viewing mode
  • of the node in edit mode
kenpuu’s picture

StatusFileSize
new188.32 KB
new174.6 KB
new203.56 KB

Hello again. It seemes to be working correctly now. But I still can't disable the outline form on node creation and node editing. The screenshots are attached, and the text bellow appears in the edit form, but doesn't appear in the screenshot.

stdClass Object ( [nid] => 134 [type] => enlaces_pelicula [language] => es [uid] => 3 [status] => 1 [created] => 1292512559 [changed] => 1292512559 [comment] => 2 [promote] => 1 [moderate] => 0 [sticky] => 0 [tnid] => 0 [translate] => 0 [vid] => 136 [revision_uid] => 3 [title] => child node [body] => body [teaser] => body [log] => [revision_timestamp] => 1292512559 [format] => 1 [name] => kenpuu [picture] => [data] => a:1:{s:13:"form_build_id";s:37:"form-e3061055a0e7ad3335b6acbcf504803a";} [path] => content/child-node [revision_moderation] => 0 [book] => Array ( [mlid] => 273 [nid] => 134 [bid] => 132 [menu_name] => book-toc-132 [plid] => 272 [link_path] => node/134 [router_path] => node/% [link_title] => child node [options] => Array ( ) [module] => book [hidden] => 0 [external] => 0 [has_children] => 0 [expanded] => 0 [weight] => 0 [depth] => 2 [customized] => 0 [p1] => 272 [p2] => 273 [p3] => 0 [p4] => 0 [p5] => 0 [p6] => 0 [p7] => 0 [p8] => 0 [p9] => 0 [updated] => 0 [href] => node/134 [title] => child node [original_bid] => 132 [parent_depth_limit] => 8 ) [last_comment_timestamp] => 1292512559 [last_comment_name] => [comment_count] => 0 [taxonomy] => Array ( ) [date] => 2010-12-16 16:15:59 +0100 [revision] => [menu] => Array ( [link_title] => [mlid] => 0 [plid] => 0 [menu_name] => primary-links [weight] => 0 [options] => Array ( ) [module] => menu [expanded] => 0 [hidden] => 0 [has_children] => 0 [customized] => 0 [parent_depth_limit] => 8 ) [pathauto_perform_alias] => 1 )

MarcElbichon’s picture

Do you mean that this doesn't work if you disable outline form ?

MarcElbichon’s picture

StatusFileSize
new22.07 KB

I've found a bug which reset parent book when outline form was disabled.
Can you copy attachment, rename it to book_made_simple.module and retest ?

kenpuu’s picture

Yes, if I disabled the outline permissions it didn't work. But with the patch it's solved. Thank you very much!!

MarcElbichon’s picture

Status: Active » Closed (fixed)
xqbzzr’s picture

+1 subscribe!
The patch in #14 works. Has this been comitted to the main module?

scottrigby’s picture

Project: Book made simple (Obsolete) » Book made simple
Version: 6.x-3.0 » 6.x-3.x-dev