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....
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | book_made_simple.module.txt | 22.07 KB | MarcElbichon |
| #10 | child creation.png | 203.56 KB | kenpuu |
| #10 | child view.png | 174.6 KB | kenpuu |
| #10 | child edit.png | 188.32 KB | kenpuu |
| #8 | child creation form.txt | 11.77 KB | kenpuu |
Comments
Comment #1
MarcElbichon commentedYou 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.
Comment #2
kenpuu commentedThanks. But I have already selected that option and nothing... Another idea?
Comment #3
MarcElbichon commentedWhen 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.
Comment #4
kenpuu commentedThank 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!
Comment #5
MarcElbichon commentedBMS 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 ?
Comment #6
kenpuu commentedThis is the html source. I hope it's useful.
Comment #7
MarcElbichon commentedCan you
print_r($node);Comment #8
kenpuu commentedHere you have. I don't know if i've made right.
Comment #9
MarcElbichon commentedFrom 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
Comment #10
kenpuu commentedHello 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 )
Comment #11
MarcElbichon commentedDo you mean that this doesn't work if you disable outline form ?
Comment #12
MarcElbichon commentedI'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 ?
Comment #13
kenpuu commentedYes, if I disabled the outline permissions it didn't work. But with the patch it's solved. Thank you very much!!
Comment #14
MarcElbichon commentedComment #15
xqbzzr commented+1 subscribe!
The patch in #14 works. Has this been comitted to the main module?
Comment #16
scottrigby