Problem/Motivation

The links on the administration pages of the Custom Block module, the Custom block library, do not fit with the page names. Those texts and links needs to be updated so that they are correct.

Proposed resolution

Update the UI texts Custom Block administration pages, using the wording from the hook_help text.

Remaining tasks

Update the UI texts.

User interface changes

This is a UI text change.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
#69 2572545-68b-interdiff.txt1.7 KBlokapujya
#68 2572545-68-interdiff.txt1.77 KBlokapujya
#68 2572545-68.patch6.87 KBlokapujya
#66 update_ui_texts_custom_block-2572545-63.patch6.87 KBManjit.Singh
#61 interdiff-2572545-51-61.txt2.47 KBpguillard
#61 update_ui_texts_custom_block-2572545-61.patch6.87 KBpguillard
#55 update_ui_texts_custom_block-2572545-55.patch6.87 KBsnehi
#55 interdiff.txt2.57 KBsnehi
#51 interdiff-2572545-40-51.txt5.25 KBpguillard
#51 update_ui_texts_custom_block-2572545-51.patch6.87 KBpguillard
#48 core-update-ui-text-2572545-48.patch5.38 KBharsha012
#48 interdiff-2572545-40-48.txt5.38 KBharsha012
#43 2572545-40-interdiff.txt5.29 KBmahaveer003
#43 2572545-42.patch6.81 KBmahaveer003
#40 interdiff-2572545-19-40.txt6.82 KBpguillard
#40 update_ui_texts_custom_block-2572545-40.patch6.96 KBpguillard
#35 command line fail.png13.38 KBbeanworks
#28 update_ui_texts_customs_block-2572545-28.patch6.87 KBpeezy
#27 update_ui_texts_customs_block-2572545-27.patch6.3 KBpeezy
#26 update_ui_texts_customs_block-2572545-26.patch814 byteshosttor
#24 Configure Block Save Button.png274 KBHezzieB
#19 interdiff-2572545-19-16.txt1.08 KBmiteshmap
#19 update_ui_texts_custom_block-2572545-19.patch1.84 KBmiteshmap
#16 interdiff.txt1.14 KBsnehi
#16 update_ui_texts_custom_block-2572545-16.patch1.82 KBsnehi
#14 update_ui_texts_custom_block-2572545-14.patch1.82 KBpguillard
#14 types.png28.78 KBpguillard
#14 blocks.png26.39 KBpguillard
#11 update_ui_texts_custom_block-2572545-11.patch1.82 KBpguillard
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ifrik created an issue. See original summary.

ifrik’s picture

Issue tags: +Usability
DuaelFr’s picture

Issue tags: +Novice
ehegedus’s picture

Assigned: Unassigned » ehegedus

On it

ehegedus’s picture

Assigned: ehegedus » Unassigned

Not clear how much change should I make, maybe I'm just overthinking it, some detailed feedback would be appreciated. Leaving unassigned, maybe someone with more documentation experience solves it easily.

mikebell_’s picture

I took a look at this and have a few comments:

1. The help text doesn't reference the fact it's custom blocks, not sure if this is relevant but if the titles use the name then maybe the help text should also reference this.
2. http://drupal8.dev/admin/structure/block/block-content -> has the title "Custom block library" the url doesn't reference a library or custom. Maybe this should be another issue all together.
3. http://drupal8.dev/admin/structure/block/block-content/types -> similar to above, block-content doesn't make sense considering it's a library.

jhodgdon’s picture

Issue tags: +rc deadline

Apparently this needs to be "rc deadline" because it changes translatable UI text strings. See https://groups.drupal.org/node/484788

dpopdan’s picture

Assigned: Unassigned » dpopdan
jhodgdon’s picture

Version: 8.0.x-dev » 8.1.x-dev
Assigned: dpopdan » Unassigned

The release candidate came out yesterday, so the deadline was missed. So... see https://www.drupal.org/core/d8-allowed-changes ... under Evaluating, item 4:

Changes the data model (upgrade path), translatable strings, markup, CSS, user interfaces, render array structures, third-party libraries, etc.: postpone it to 8.1.x.

So unless we really need to ask for special committer discretion here, this needs to be postponed to 8.1.x. In which case we cannot work on it for a few months and so I am going to at least for the moment un-assign it. Thanks for your interest though!

no_angel’s picture

Issue tags: -Barcelona2015, -rc deadline

- Barcelona2015, rc deadline

pguillard’s picture

Status: Active » Needs review
FileSize
1.82 KB

What do you think of these texts ?

For the "Blocks" tab :

This page provides a list of all custom blocks on the site and allows you to create, edit, and delete custom blocks of each custom block type you have defined, from the Custom block library page.

For the "Types" tab :

This page provides a list of all custom block types on the site and allows you to create and edit custom block types with fields and display settings. Create blocks of each type on the Block library page.

I have not taken #6 into account, because it seems that the title is for the entire section

jmarkel’s picture

This is may be a more general issue across Drupal but "Add" and "Create" are being used interchangeably here although they are not synonyms. I.e. the "Add custom block" and "Add custom block type" buttons and their target forms/pages aren't used to add blocks (which implies that they could be being imported from elsewhere) but instead to create new blocks/block types.

I mention this because while the changed page text in the #11 patch is fine as far as it goes, the use of the word "create" ("allows you to create...") there and in the hook_help() text is inconsistent with the button actions and page titles, which use the word "Add."

I think it would be best to make the action verb 'create' rather than 'add' but, if left at 'add' the help/description text should be consistent (IMO).

jhodgdon’s picture

Status: Needs review » Needs work

I have no strong opinion on "create" vs. "add" except that we should probably use the same terminology in the Help as we do in the UI, so if the button/link says "add", the help should also say "add", right?

Regarding #11, I like the Types text, but not the Blocks text quite as much... I found it to be confusing. It seems to be referring to itself rather than pointing out to go to the Types page to define types?

Screen shots would also be helpful for the next review, so we can see the tabs/help/buttons/links in context without having to start up our own instance of simplytest.me etc. Thanks!

pguillard’s picture

Status: Needs work » Needs review
FileSize
26.39 KB
28.78 KB
1.82 KB

This is what I did :

  • replaced "create" with "add"
  • removed mention to "library" as it doesn't improve comprehension
  • tried to name more cleary "Block types page" and "Blocks page" without "custom", to recall the tab titles
  • added sceenshots.

Blocks
Types

What do you think ?

no_angel’s picture

Is 'library' used here because it is referencing created 'custom blocks'? Why not use 'list' instead or just 'Custom blocks'?

Just a question: Isn't this just another 'type' that can be created with fields like comments, content, ... and once create a list of comments, content is viewable.

snehi’s picture

no_angel’s picture

Assigned: Unassigned » no_angel
jhodgdon’s picture

Status: Needs review » Needs work

Good! I like the fact that now the help text actually matches the UI.

I had one moment of "huh, what??" when I read the help text though, due to punctuation:

This page provides a list of all custom blocks on the site and allows you to add, edit, and delete custom blocks of each custom block type you have defined, from the Block types page.

So what this is trying to say is that you can (a) add, edit, delete blocks here and (b) if you want to define a custom block type, you need to go to the Block types page. But due to the punctuation, when I read the end of this sentence, my first thought was that I had to go to the Block types page in order to add/edit/delete blocks.

I think it would be clearer if this was made into two sentences, more like the help you have in the patch for the Types page:

This page provides a list of all custom block types on the site and allows you to add, edit, and delete custom block types with fields and display settings. Then you can add each type of block on the Blocks page.

And as a note... The issue summary mentions the hook_help text, so we probably also need to look at the text on:
- The main Block and Custom Block help pages (admin/help and click on Block or Custom Block)
- The Block layout page help text at the top
and make sure it is all consistent.

Also the issue summary suggests changing the UI text and not the help... I don't care too much which we do as long as they are consistent, but the issue summary needs an update if we're doing it this way.

miteshmap’s picture

Status: Needs work » Needs review
FileSize
1.84 KB
1.08 KB

This page provides a list of all custom blocks on the site and allows you to add, edit, and delete custom blocks of each custom block type you have defined, from the Block types page.

splitted text into two sentences.

jhodgdon’s picture

Status: Needs review » Needs work

Yes, this reads much better. Thanks!

So, I went back to the issue summary, and also started up simplytest.me to look at what the help and pages look like for a site, with this patch. There are still many inconsistencies between the UI text and the help text:

  • admin/help/block_content (the Custom Block help page) says:

    Users with the Administer blocks permission can create and edit custom block types with fields and display settings, from the Custom block types page in the Custom block library.
    ...
    Users with the Administer blocks permission can create, edit, and delete custom blocks of each custom block type you have defined, from the Custom block library page. Custom blocks are shown in the Place blocks list on the Block layout page...

    Links:
    - Custom block types => admin/structure/block/block-content/types
    - Custom block library => admin/structure/block/block-content
    - Block layout page => admin/structure/block

  • admin/structure/block/block-content:
    - The page title of this page is "Custom block library", which is also the tab title.
    - The sub-tab navigation title is simply "Blocks".
    - The button says "Add custom block"
    - The type column is called "Block type"
    - The help at the top of the page says:

    This page provides a list of all custom blocks on the site and allows you to add, edit, and delete custom blocks of each custom block type you have defined. You can manage block types from the Block types page.

    Links:
    - Block types page => admin/structure/block/block-content=

  • admin/structure/block/block-content/types:
    - The page title is still "Custom block library", which is also the tab title.
    - The sub tab navigation title is simply "Types".
    - The button says "Add custom block type"
    - The types column is called "Block type"
    - The help at the top of the page says:

    This page provides a list of all custom block types on the site and allows you to add, edit, and delete custom block types with fields and display settings. Then you can add each type of block on the Blocks page.

    Links:
    - Blocks page => admin/structure/block/block-content

  • admin/structure/block
    - The page title here is "Block layout".

Can you spot all the inconsistencies? There are a lot... Here is a list of what I think needs to be updated... at least these are my suggestions:

  1. Whenever we refer to or link to admin/structure/block/block-content, we should call it "the Blocks page in the Custom block library".
  2. Whenever we refer to or link to admin/structure/block/block-content/types, we should call it the "the Block types page in the Custom block library".
  3. We should also change the sub-tab title on admin/structure/block/block-content/types to say "Block types" instead of just "Types".
  4. Whenever we refer to or link to admin/structure/block, we should call it "the Block layout page".
  5. I think that the help on admin/structure/block/block-content should say something to let you know that after creating a custom block, it will appear in the Place blocks list on the block layout page (with a link to that page). This is currently missing.
  6. I think that in most help text, we do not include the word "page" inside the link text, so when making links in help do something like "the Foo bar page", not "the Foo bar page" or "the Foo bar page". This is also inconsistent across the various help texts mentioned above.

Thoughts?

no_angel’s picture

Assigned: no_angel » Unassigned
mikemiles86’s picture

HezzieB’s picture

Peezy & I are working on this at the Boston Sprint Weekend.

HezzieB’s picture

Issue summary: View changes
FileSize
274 KB

@jhodgdon What do you think about changing the button from "Save block" to "Save and Place Block" for your issue (#5) below:

I think that the help on admin/structure/block/block-content should say something to let you know that after creating a custom block, it will appear in the Place blocks list on the block layout page (with a link to that page). This is currently missing.

Configure Block Save Button

peezy’s picture

Adding a note that @hosttor is helping as well.

hosttor’s picture

This addresses number 3 above

peezy’s picture

This patch is for 1, 2, 4, and 6.

peezy’s picture

...and both of the patches together.

peezy’s picture

Status: Needs work » Needs review

The last submitted patch, 26: update_ui_texts_customs_block-2572545-26.patch, failed testing.

hosttor’s picture

hosttor’s picture

hosttor’s picture

Saphyel’s picture

Status: Needs review » Reviewed & tested by the community

It works as #28 said

beanworks’s picture

FileSize
13.38 KB

Patch (update_ui_texts_customs_block-2572545-28) applied to Acquia desktop dev (dry run):

Problems completing. Is this supposed to be preceded by other patches?

Saphyel’s picture

Status: Reviewed & tested by the community » Needs work
lokapujya’s picture

beanworks, what do you mean by "problems completing"? As you can see, the patch applied and passed testing in #28. Oh, just saw the attached image. Are you applying to 8.1.x?

jhodgdon’s picture

Thanks for the patches and comments!

So...

Regarding comment #24, I don't think that changing the save button on the configure blocks page to say "Save and place block" is relevant to this particular issue at all. If you want to make that suggestion for Drupal Core, please make a separate issue. we try to keep issues focused on one thing, and this one is about the "custom block" functionality, not about the generic block configure and place functionality. And this change would not help to address item #5 in comment #20, which is also about the custom block functionality and not about the configure block forms.

Regarding the patch in #28, I do not believe that it fixes the problems identified in #20. To whomever creates the next patch, I will suggest that you read #20 carefully, and then before submitting your patch, you should go to the 4 pages that are mentioned in #20 and make sure that all references on those pages are updated to the 6 points mentioned in #20. They aren't in this patch.

Thanks!

no_angel’s picture

Assigned: Unassigned » no_angel

Assigning to me. Will look at patch in #19 and comments in #20.

pguillard’s picture

Status: Needs work » Needs review
FileSize
6.96 KB
6.82 KB

I guess this patch matches the 6 points mentioned in #20
Concerning point #5, I suggested :

Blocks in the block library belong to Custom block types, each with its own fields and display settings. After creating a block, it will appear in the blocks list on the Block layout page, then you can place it in a region.

jhodgdon’s picture

Status: Needs review » Needs work

I think this all looks very good now, thanks! The top-of-page help, page names, table headers, and tab names are all consistent with each other within the Custom Blocks module UI now.

So, let's just fix a couple of minor grammatical/wording/accuracy issues introduced by the patch (or pre-existing):

a)

The Custom Block module allows you to create custom block types and content-containing blocks, and provides a Blocks page in the Custom block library listing all of them.

- The word "them" at the end of this sentence is ambiguous: it could be referring to blocks or block types.
- I think "a Blocks page" should be "the Blocks page"
- Saying that the Blocks page just "lists" the blocks is kind of misleading. It's a page you can use to manage them.

So I think this could be worded better. Maybe something like:

... allows you to create and manage custom block types and content-containing blocks from the Custom block library.

This would link to the Blocks page within the library, but the Block types page is linked there, so I think it would get across the point that you can manage both types and blocks?

b)

Users with the Administer blocks permission can create, edit, and delete custom blocks of each custom block type you have defined,

The wording here is weird. It starts with "Users" and then says "you have defined". Probably would be better to say something like
... of each defined custom block type, ...

c)

Custom blocks are shown in the Place blocks list on the Block layout page...

After creating a block, it will appear in the blocks list on the Block layout page, then you can place it in a region.

There is no "blocks" or "Place blocks" list on the Block layout page. There is only a list that appears if you click on "Place block". So these seem kind of misleading.

I think these two areas would be better if they did something more like what is in this help:

After creating a block, place it in a region from the Block layout page.

(maybe with the addition of "you can" or something like that.

mahaveer003’s picture

Assigned: no_angel » mahaveer003
mahaveer003’s picture

Added the patch with above changes.
Interdiff added.

mahaveer003’s picture

Status: Needs work » Needs review
mahaveer003’s picture

snehi’s picture

+++ b/core/modules/block_content/block_content.links.task.yml
@@ -7,7 +7,7 @@ block_content.list_sub:
+  title: Block types

don't you think it needs quotes. i may be wrong.

jhodgdon’s picture

Status: Needs review » Needs work

My feedback in #41 (a) was not addressed in this patch, or at least the interdiff doesn't show that it was fixed, as far as I can see.. (c) is not either, at least not completely.

Please read the reviews and if you don't understand what is being asked, rather than making a patch, ask a question. Thanks!

harsha012’s picture

Assigned: mahaveer003 » Unassigned
Status: Needs work » Needs review
FileSize
5.38 KB
5.38 KB

Added the patch as per the comment #41.

Status: Needs review » Needs work

The last submitted patch, 48: core-update-ui-text-2572545-48.patch, failed testing.

pguillard’s picture

Assigned: Unassigned » pguillard
pguillard’s picture

Assigned: pguillard » Unassigned
Status: Needs work » Needs review
FileSize
6.87 KB
5.25 KB

So.. I started from my previous patch at #40 and applied suggestions from #41.

@harsha012 : I guess you get wrong code with a copy paste, I found bad Urls and some "em" tags disappeared. Then I found out some code was missing from my previous patch, I guess you had things both in git working and staging areas and your git diff didn't catch everything.

@jhodgdon : I do not answer your interrogations, because I lack judgment :-), but mostly because I tried to strictly apply suggestions from #41 and put this patch back on track.

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

YES, thanks. This all looks much better to me! Assuming the bot agrees...

jhodgdon’s picture

Component: documentation » block_content.module

Changing component here. This is not really "documentation".

catch’s picture

Status: Reviewed & tested by the community » Needs review
+++ b/core/modules/block_content/block_content.module
@@ -18,22 +18,22 @@ function block_content_help($route_name, RouteMatchInterface $route_match) {
+      $output .= '<p>' . t('The Custom Block module allows you to create and manage custom <em>block types</em> and <em>content-containing blocks</em> from the <a href = ":block-library" >Custom block library<a/>. Custom block types have fields; see the <a href=":field-help">Field module help</a> for more information. Once created, custom blocks can be placed in regions just like blocks provided by other modules; see the <a href=":blocks">Block module help</a> page for details. For more information, see the <a href=":online-help">online documentation for the Custom Block module</a>.', array(':block-library' => \Drupal::url('entity.block_content.collection'), ':block-content' => \Drupal::url('entity.block_content.collection'), ':field-help' => \Drupal::url('help.page', array('name' => 'field')), ':blocks' => \Drupal::url('help.page', array('name' => 'block')), ':online-help' => 'https://www.drupal.org/documentation/modules/block_content')) . '</p>';

Why is it 'Custom block library' in the link text, but 'custom block library' when not linked. I'd expect 'custom block' all the time since we don't treat 'block' by itself as a proper noun.

snehi’s picture

Status: Needs review » Needs work

The last submitted patch, 55: update_ui_texts_custom_block-2572545-55.patch, failed testing.

jhodgdon’s picture

Normally, in UI text such as help, if we make a link to a particular page, we use the exact page name as shown in the UI when you go to the page. The page is called "Custom block library", so I think when linking to that page it should be capitalized.

However it should probably say

Custom block library page

Manjit.Singh’s picture

Is that the reason that automated test fails ?

pguillard’s picture

Should I rename patch #51 to #59 and set "Needs review" again ?

jhodgdon’s picture

Can we add the word "page" in there, possibly in several places, as noted in #57?

pguillard’s picture

Status: Needs work » Needs review
FileSize
6.87 KB
2.47 KB

Sure.
(I started from #51 to add "page")

jhodgdon’s picture

Status: Needs review » Needs work

Looks good. However, there are now two lines in this patch where in the help, "Custom block library" is capitalized instead of being just "custom block library" even though it is not a link.

  1. +++ b/core/modules/block_content/block_content.module
    @@ -18,22 +18,22 @@ function block_content_help($route_name, RouteMatchInterface $route_match) {
    +      $output .= '<p>' . t('The Custom Block module allows you to create and manage custom <em>block types</em> and <em>content-containing blocks</em> from the <a href = ":block-library" >Custom block library<a/> page. Custom block types have fields; see the <a href=":field-help">Field module help</a> for more information. Once created, custom blocks can be placed in regions just like blocks provided by other modules; see the <a href=":blocks">Block module help</a> page for details. For more information, see the <a href=":online-help">online documentation for the Custom Block module</a>.', array(':block-library' => \Drupal::url('entity.block_content.collection'), ':block-content' => \Drupal::url('entity.block_content.collection'), ':field-help' => \Drupal::url('help.page', array('name' => 'field')), ':blocks' => \Drupal::url('help.page', array('name' => 'block')), ':online-help' => 'https://www.drupal.org/documentation/modules/block_content')) . '</p>';
    

    here's one

  2. +++ b/core/modules/block_content/block_content.module
    @@ -18,22 +18,22 @@ function block_content_help($route_name, RouteMatchInterface $route_match) {
    +      $output = '<p>' . t('Each block type has its own fields and display settings. Create blocks of each type on the <a href=":block-library">Blocks</a> page in the Custom block library.', array(':block-library' => \Drupal::url('entity.block_content.collection'))) . '</p>';
    

    Here's the other.

alvar0hurtad0’s picture

Assigned: Unassigned » alvar0hurtad0
alvar0hurtad0’s picture

Assigned: alvar0hurtad0 » Unassigned
Status: Needs work » Needs review
FileSize
3.32 KB
7.92 KB

Here, are #62 changes over #61 patch.

alvar0hurtad0’s picture

Please, ignore preovious patch, I've uncommited changes from other issues and I'm mixed them (so sorry).

This is the patch.

Manjit.Singh’s picture

changed Custom block library to custom block library where there is no link. Please verify it once.

jhodgdon’s picture

Status: Needs review » Needs work
+++ b/core/modules/block_content/block_content.module
@@ -18,22 +18,22 @@ function block_content_help($route_name, RouteMatchInterface $route_match) {
+      $output .= '<dd>' . t('Users with the <em>Administer blocks</em> permission can create and edit custom block types with fields and display settings, from the <a href=":types">Block types</a> page in the Custom block library. For more information about managing fields and display settings, see the <a href=":field-ui">Field UI module help</a>.', array(':types' => \Drupal::url('entity.block_content_type.collection'), ':field-ui' => $field_ui)) . '</dd>';

This still says "Custom block library". So does another page. So that last patch is not good. I didn't look at the other two. Please why are you all adding multiple patches to this issue? One at a time!

lokapujya’s picture

Status: Needs work » Needs review
FileSize
6.87 KB
1.77 KB

lets see if this interdiff works:
git diff --color-words

lokapujya’s picture

FileSize
1.7 KB

slightly better maybe.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

--color-words is only good for looking at things in your terminal. Please don't use it for making interdiff files, as they're not readable online. You need to just make regular interdiff files.

Anyway, the latest patch looks good, thanks!

Committers: I am not sure what the string change deadline is for the Beta cycle, but if that hasn't passed, I think it would be good to consider this for 8.1.x as well as 8.2.x.

  • catch committed 79bc163 on 8.2.x
    Issue #2572545 by pguillard, snehi, peezy, lokapujya, mahavir003,...

  • catch committed 763a466 on 8.1.x
    Issue #2572545 by pguillard, snehi, peezy, lokapujya, mahavir003,...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.2.x and cherry-picked to 8.1.x. Thanks!

Status: Fixed » Closed (fixed)

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