Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The book settings page has a setting "Content type for child pages". This setting actually only determines the default content type used in the link "Add child page" on book pages.
Proposed resolution
Change the label to "Default content type for 'Add child page link'". Also and a help text explaining in more detail what this setting does.
Remaining tasks
Create patch.
User interface changes
Changes widget label
API changes
Comment | File | Size | Author |
---|---|---|---|
#8 | label-help-text-Book-Module-2473089-8.patch | 670 bytes | botris |
#6 | label-help-text-Book-Module-2473089-6.patch | 1.15 KB | botris |
#6 | interdiff-3-6.txt | 1.36 KB | botris |
#3 | label-help-text-Book-Module-2473089-2.patch | 1.13 KB | botris |
Comments
Comment #1
botrisDiscussed this with pwolanin, the Book module maintainer, and agreed that this is a bug and label should be changed.
Working on this now.
Comment #2
drubbJust a minor thing that came to my mind: 'default type' implies the type can be changed when adding child pages. That's not the case, so maybe it should just be 'type'? And I think, there's no type for a link, so maybe the original label is just fine?
Nevertheless the original issue #2472563 shouldn't be closed, it's about the description, not the label.
Comment #3
botrisPatch
Comment #4
botrisdrubb, please have a look at the issue description and patch. The label and held text need to be changed as it suggests a functionality that it doesn't provide.
Comment #5
ifrikThanks, that these labels make much more sense now.
Just one small change because in other admin themes, the "Add child page" link and the help text for the radio button might be displayed differently.
How about:
"Users with the Add content and child pages to books permission can have a shortcut Add child page with each book node. This link will open a new node of the type selected here."
Comment #6
botrisChanged phrasing mostly as per your suggestion and but removed the word node.
Comment #7
jhodgdonThanks for the patches!
I think this needs some work:
I agree with the previous comment... "Default" doesn't really make sense here. This is the *only* content type that the Add child page link will use, not a "default".
Also I don't see why we use variable substitution here? It should just be
t('Content type for the Add child page link') right?
Again, why use variable substitution here?
Also do not use the word "shortcut". This is just a link. And not something users "can" have, they will have it if they have the permission.
Well actually I think we should get rid of this description. We do not need to explain this IMO. At least we do not need to write an essay on it... I think no description is fine.
Comment #8
botrisOk so I've changed it, only the label that's updated and no variable substitution.
Comment #9
jhodgdonLooks good to me, thanks! Sorry for the delay in reviewing, I was on vacation.
Comment #10
xjmThanks all! It's good that we were able to communicate the information without adding extra text.
This issue only changes user-facing strings and markup, so per https://www.drupal.org/core/beta-changes, this can be completed any time during the Drupal 8 beta phase. Committed and pushed to 8.0.x!