Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
system.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Jun 2015 at 18:28 UTC
Updated:
21 Sep 2015 at 17:14 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #1
cilefen commentedComment #2
ivanstegic commentedThis looks good to me.
Comment #3
ivanstegic commentedOne more from Usability to RTBC. Huzzah!
Comment #4
David_Rothstein commented"Did you mean to...?" is very unusual wording for help text. Normally that kind of wording would be used in an error message or similar.
Also I'm pretty sure "!blocks" should be "@blocks" these days. And what happens to this link if the Block module is disabled?
And is help text even the right place to put this link? I think it might be better to have a "Block layout" link underneath each theme (i.e., next to the existing links such as "Settings" and "Set as default").
Comment #5
David_Rothstein commentedAlso linking to a previous issue in which this usability issue was raised (nice to know that testing confirms it!) and which proposed a different, although more involved, solution.
Comment #6
David_Rothstein commentedAdding the backport tag since this page hasn't really changed much since Drupal 7, so I assume the testing results are valid there too.
Comment #7
Bojhan commented@David Typically we do link to connecting concepts via the description on top. Not in-line with each theme, as that would create a lot of duplication.
What we could do is change the text to be more in line with other places (e.g. "Place blocks for each theme on the block layout page").
Comment #8
cilefen commented@David_Rothstein If the block module is disabled, this happens: #2498675: Linking to a non-existent route should not throw an exception.
Comment #9
David_Rothstein commented@Bojhan so there wouldn't be duplication on the page (since each link would go to the block configuration page for that particular theme). There would be duplication with the other path for getting to these pages (via Admin >> Structure). Depending on how strong the usability testing results were (i.e. what percentage of people went to "Appearance" first?) I honestly wonder if it would make sense to just remove block configuration from the Structure menu and have Appearance be the one and only place you go to do it? (It is not a wrong instinct to go there; in many ways it makes more sense than Structure.) That would be a larger change, though.
For help text, "Place blocks for each theme on the block layout page" sounds pretty reasonable (and there would need to be a moduleExists check to not print this at all if the Block module is disabled). The question is how much it actually solves this, since apparently very few people actually read help text :)
Comment #10
Bojhan commented@David_Rothstein I just don't want to overreact to pogo-sticking. We can consider an IA change, but just not this late in the release cycle I think.
Comment #11
MattA commented@David_Rothstein I was also thinking the same thing about moving blocks to Appearance while working on #2512456. It would also dovetail nicely if something like this were to happen.
Comment #12
lunk rat commented@MattA I totally agree with you; I made a similar suggestion during the study analysis. Implement your mockup as a replacement blocks layout UI, then merge the Block layout UI and the Appearance UI.
Ironically the "Demonstrate block regions" screen is the only place to see a "theme preview". So it would be a major enhancement to the Appearance/theme management workflow.
This hybrid of Appearance + Block Layout could live at its own top-level menu item.
Comment #13
MattA commentedYou know, I never really thought about it until you said it. It is so true that it's actually sad.
Speaking of top-level menus, it amazes me how "Appearance" is even up there right now. You set up a site, you set the theme and theme settings exactly once, and then you never click on it again! At least with blocks, it would you know... be a menu, instead of a mislabeled "theme" button.
Comment #14
MattA commentedOh look, another usability issue that came up during testing for D7 at UMN 2011. Seems this might be a duplicate of #1188790: Add "Manage blocks" link on Themes admin page which was bumped to D8. It even contains a similar screenshot:

Really wish that usability issues would stop just getting kicked down the road...
Comment #15
lunk rat commentedGreat find @MattA. I've added it to the related issues.
Comment #16
dcmul commentedFrom #4. Did we come to any agreement about no putting this in the help text?
Comment #17
tim.plunkettWhy can't block_help do this?
Comment #18
dcmul commentedThe only difference I have noticed so far, is the change in the order of those 2 lines. If the order is not important, I could go ahead and put it in the block module.

Comment #19
andrew.eagling commentedAs someone rather new to drupal i can see the use in this as i have had to issue before.
The patch appears to be working as it should be to me. :)
I would attach images to show that it works but dcmul already out an image showing it, i also have very little php knowledge so i dont really understand how your code gets this to work so i will leave it as to be reviewed still.
Good work :)
Comment #20
dcmul commentedputting the code to the block module.
Comment #21
jhodgdonNote: I haven't looked at the other patches, but if you want this to live in the System module you need to use a module exists check to make sure that the Block module is enabled when you make the link.
Comment #22
merilainen commentedThis looks good to me, I guess there is no need to check if block module exists when the code is inside block module. Also simplifies the switch + if combo into one switch.
Comment #23
David_Rothstein commentedNice find, MattA, on the related issue (#1188790: Add "Manage blocks" link on Themes admin page)! Given that issue already exists for a more comprehensive solution, I definitely agree with just doing the more limited solution here of changing the help text... especially since it's backportable.
Comment #24
mohit_aghera commented1. Updated help text.
2. Moved help text related description to system module's hook_help().
Comment #25
hussainwebThanks @mohit_aghera.
You need to wrap this in a if block to see if block module is enabled. See #17.
Comment #26
mohit_aghera commentedThanks @hussainweb.
Updated patch as per your suggestion.
Comment #27
mohit_aghera commentedComment #28
merilainen commentedStill looking good, after the requested changes.
Comment #29
jhodgdonI'm not necessarily against making this small code refactor, but it is technically out of scope for this issue.
The other part looks fine.
Comment #30
hussainwebI agree it is out of scope. Removing it entirely.
Comment #31
jhodgdonThanks for taking that out!
Minor nitpick: The page is technically called "Block layout" (note the caps). Sorry, didn't notice that before.
Comment #32
jhodgdonFixing component
Comment #33
lauriiiComment #34
cilefen commentedComment #35
subhojit777Comment #37
subhojit777Patch in #34 looks good. #35 confirmed that tests are indeed failing.
Comment #38
dcmul commentedI don't think I fully understand what #35 is all about. Otherwise #34 seems fine
Comment #39
tim.plunkett#35 was to confirm that the tests, without the fix, were actually covering the change. #34 is fine to be committed.
Comment #40
alexpott#34 needs a reroll.
Comment #42
lauriiiIt seems this got commited as part of https://www.drupal.org/commitlog/commit/2/c8702065a19f2431ff172691c15621... . That way test only patch should pass :P
Comment #44
lauriiiOh the test was also commited which causes nice fatal error.
Comment #45
alexpottThanks @lauriii. Fixed all of this and attributed all the people.
Committed 46d59d6 and pushed to 8.0.x. Thanks!