Problem/Motivation

Functionality of the book module has changed since the help text was written.

  1. The book module adds a new content type "Book page" that is by default allowed in book outlines and as child pages. Any other content types first need to be enabled on the Book settings page.
  2. The help text refers to the "Blocks Administration page" but the page is now called "Blocks layout page".

Proposed resolution

  1. Rewrite the first use "Adding and managing book content", including mentioning the "Book outline" options on the content edit form. We also need to check the functionality. On the first glance it looks like any number of content types can be book outlines, but only one at a time can be book child pages.
  2. Changing the wording in the Use "Book navigation"

Remaining tasks

User interface changes

API changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhodgdon’s picture

Issue summary: View changes

fixing bullets...

Also I think this is still working the same as it was in D7, which is that you can allow any content type to be used as pages in books?

ifrik’s picture

On the first glance it looks like the functionality has changed with checkboxes for book outline pages, and a radio button for child pages.

ifrik’s picture

Issue summary: View changes
jhodgdon’s picture

Ah. So that radio button says "When someone clicks the Add child page link, use this content type". So yes, it should be choosing just one type.

And the checkboxes say "Allow people to add these types of pages to the outline". So that should allow multiple types.

This UI makes sense to me... In the help I would explain this similar to what I wrote here?

ifrik’s picture

Issue tags: +drupaldevdays

Yes, I think the help text could be written like that. Maybe it needs a sentence to also say what an "outline" is?

jhodgdon’s picture

Indeed, good idea.

botris’s picture

Working on this

botris’s picture

botris’s picture

Following up tomorrow.

botris’s picture

Attached a preliminary patch, but first we should wait for #2473089: Book settings page has wrong settings label to be commited

botris’s picture

Status: Needs review » Needs work

The last submitted patch, 11: help-text-Book-Module-2471751-10.patch, failed testing.

botris’s picture

fixed typo

botris’s picture

Status: Needs work » Needs review
jhodgdon’s picture

Status: Needs review » Needs work

Thanks for the patch!

A few things to fix:

a) We don't usually use backquotes like
‘book outline’
in our help. Actually we would normally use <em>book outline</em> to indicate terminology.

b) I don't think that the points in the issue summary have all been addressed. What we need to make sure to cover is:
- There's a content type called Book page. This should go in the About section.

- The Book page content type is always available for adding to books or creating books.
- If you want other content types to be available for books, you need to enable this on the settings page.
- You can also configure the content type that is used if you click "Add child page"
==> probably these 3 items should be covered in a new topic, maybe called "Configuring content types for books"

- The Blocks layout page name change

c) The patch seems to have deleted existing information from the help, which we also don't want to do.

botris’s picture

Status: Needs work » Needs review
FileSize
4.4 KB
4.73 KB

Thanks for the feedback.

Hereby the new patch.
Most of you issues have been addressed. But the remark "The Book page content type is always available for adding to books or creating books" is not true. Not sure if that should be the case, but to me it makes sense that you can remove any content type from the book outline.

botris’s picture

Also, it might be best to first review the patch here #2473089: Book settings page has wrong settings label

botris’s picture

ifrik’s picture

Status: Needs review » Needs work

Thanks this looks pretty good, and thanks for fixing the link to the block module already.

Just some small issues:

There's a comma where it shouldn't be at "The Book content type, is the initial..."

For the "Configuring content types for books", I've made a comment in the other issue.

In order to make the workflow easier, we could also close this issue as a duplicate and add the help text changes to the changes in the UI text. That way it could just be committed alltogether instead of postponing this one.

jhodgdon’s picture

Looking pretty good, thanks!

A few things to fix:

a) "From the node edit form ...". We don't call it that. Content edit form would be better.

b) Also it needs a comma after form I think?

c) "The Book content type, is the initial content type enabled for book outlines."
==> Remove comma here

d) "you can change or add content types that can used in book outlines."
==> you can configure the content types that can be used ...

e) "underneeth each book node. "
==> Don't use the word node. Ever. Use "content item" or in this case something like "when viewing a content item that is part of a book outline" would probably be better.

Also I don't think we should say "underneath" but if we do it is misspelled.

f) "This link will open a new node of the type you select on the"
==> This link will allow users to create a new content item of the type...

The rest looks good, thanks!

botris’s picture

Status: Needs work » Needs review
FileSize
3.81 KB
4.52 KB

Applied comments to new patch.

jhodgdon’s picture

Status: Needs review » Needs work

Great!

One more small thing:
"Users with the Add content and child pages to books permission will have a shortcut Add child page when viewing a content item ..."

have a shortcut ==> see a link to

Then I guess we are waiting for #2473089: Book settings page has wrong settings label, or should we just go ahead with this and assume that will get fixed too?

keopx’s picture

ifrik’s picture

Status: Needs review » Needs work

Thanks,
all together the text looks really good now.

For consistency, it would be good to change a few last things:

In the About section: creates a new content type Book.: The content type is called "Book page" so we should use that.

rearrange section titles on the Book administration page.: That should be "Books list page". That keeps it consistent the use of "Books listing page" later.

ifrik’s picture

I think this patch doesn't have to wait for the related issue because it describes the uses correctly and doesn't rely on the exact wording in the user interface.

And another note: The link to the block module is also fixed in #2473105: Update hook_help texts that link to modules that can be uninstalled because otherwise the test would fail.

oceankrish76’s picture

I'm in sprint and Im working on this.

oceankrish76’s picture

Made changes to content type and replaced Book administration page by Book list page.

oceankrish76’s picture

FileSize
23.7 KB
oceankrish76’s picture

Status: Needs work » Needs review
FileSize
5.05 KB
ifrik’s picture

Status: Needs review » Needs work

Thanks for changing the reference to the "Book list page".

But I can't quite see the change of the content type. In the About section it should say Enabling the module creates a new content type <em>Book page</em>.

The same in "Configuring content types" - that should be The<em> Book page</em> content type and By default this is the <em>Book page</em> content type.

This should make it clear enough to site builders and editors what the difference is between the content type "Book page" and a book and its pages.

Oceankrish76: In future, it would be good if you also make an interdiff in addition to the patch. Then it's much easier for others to see what has changed between two patches. See https://www.drupal.org/patch for details.

botris’s picture

Status: Needs work » Needs review
FileSize
5.07 KB
4.59 KB

Updated the "Book page" text.

darol100’s picture

Issue summary: View changes
FileSize
123.66 KB

I have tested the patch #31 and seem to be working fine. I have attached a screenshot of the hook_help text.

darol100’s picture

Status: Needs review » Reviewed & tested by the community
webchick’s picture

Status: Reviewed & tested by the community » Fixed

Great stuff, thanks!

Committed and pushed to 8.0.x.

  • webchick committed 412f477 on 8.0.x
    Issue #2471751 by boris sondagh, oceankrish76, keopx: Update hook_help...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.