Problem/Motivation

Powered by Drupal block, when placed shows the "Powered by Drupal" Block title by default. Since the text in the block is also "Powered by Drupal" you see:
Powered by Drupal
Powered by Drupal
Which looks like an error.

Proposed resolution

Propose we set the title to hidden by default.

Remaining tasks

None.

User interface changes

'Display title' of the 'Powered by Drupal' block is no longer selected by default.

API changes

N/A.

Data model changes

N/A.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tkoleary created an issue. See original summary.

ozin’s picture

Hi @tkoleary,

I think it doesn't make sense to do this, because you can disable the block title with your install profile as the Standard Drupal profile does it into the configuration yaml file block.block.bartik_powered.yml. Developers can add such file to their projects and disable the block title, so we do not need to do an exception for this block in core.

What do you think about this, can we close this issue with status Works as designed?

tstoeckler’s picture

Status: Needs work » Needs review
FileSize
724 bytes

@ozin: Yes, it's possible to disable the title explicitly if you want that via multiple means. However, I think @tkoleary means that we should disable it by default for usability reasons. We already to this for a number of blocks (Branding, Local actions, Local tasks, ...) and I think the Powered by Drupal Block is a good candidate for this as well.

I cooked up a quick patch which resembles what we do with the other block types. It's possible to write tests for this, not sure if we want to do this as this is not really logic, but I'll leave that for the committers to decide.

But @tkoleary maybe you can give this a spin to see if this is what you were after?

Status: Needs review » Needs work

The last submitted patch, 3: 2604974-3.patch, failed testing.

dcrocks’s picture

Note that this only a 'Place Block' issue, and not an installation one. The simplest solution is to educate admins to uncheck the 'label display' check box in the 'Place Block' form for a new block or the block 'Configure' form for an existing block.

dcrocks’s picture

The testing system needs a block that follows system defaults and the powered_by block is the best candidate for that. And prolem is really easy to fix thru the admin UI. I would suggest this be closed as 'works as designed'

Chi’s picture

Title: Hide "Powered by Drupal" Block title by default » Hide "Powered by Drupal" block title by default
Priority: Normal » Minor
Status: Needs work » Needs review
FileSize
3.52 KB

Sensitive defaults make sense for me as well even though it is rather minor issue. The fix is a fairly simple.

tstoeckler’s picture

@Chi, yay, thanks! Looks great.

mmatsoo’s picture

I believe this can be closed with a status of "Closed (outdated)". I was about to test this patch, but found that the "Display title" checkbox is unchecked by default in the Powered by Drupal block. (both on the 8.1.0-dev branch and 8.0.3)

dcrocks’s picture

I just did git clones of both 8.0.3 and 8.1.0 and they both had the 'display title' box checked by default. How did you build your installations?

priyanka.singh’s picture

Assigned: Unassigned » priyanka.singh
priyanka.singh’s picture

Issue tags: +drupalconasia2016
priyanka.singh’s picture

Status: Needs review » Closed (cannot reproduce)

Using new installation of 8.1.x-dev: Unable to reproduce this issue. The block was rendering fine.

priyanka.singh’s picture

Assigned: priyanka.singh » Unassigned
Chi’s picture

Status: Closed (cannot reproduce) » Needs review

The block was rendering fine.

Because the title was hidden somewhere in installation profile. The issue is about default settings. I just checked it on 8.1.x and the title is still enabled by default.

Ramya Balasubramanian’s picture

Hi,
I have downloaded this patch and made changes in corresponding files. This is not working for me.

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.

Ramya Balasubramanian’s picture

FileSize
83.9 KB

In 8.1 and 8.2 dev version ,'powered by Drupal' block title is not shown by default. Without applying a patch its working.

emma.maria’s picture

Chi’s picture

@Ramya Balasubramanian, don't test existing bartik_powered block, but try to place new 'Powered by Drupal' block. See note #15 for explanations.

emma.maria’s picture

This needs screenshots to show on a clean install that the block title is not being printed on the front end. Then this issue will be RTBC.

Chi’s picture

Issue tags: -Needs screenshots
FileSize
25.09 KB

Simple test link (Drupal 8.2.x + patch #7):
https://m0cfp.ply.st/

Edit Olah’s picture

This afternoon, I am going to work on this, in the sprint at DrupalCamp London, and attach screenshots before and after applying the patch.

dcrocks’s picture

FileSize
60.31 KB
64.25 KB

Before and after images. As you can see, the default value of the 'display title' box, when being placed, has changed from checked to un-checked, which is what this patch is about.

Edit Olah’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
FileSize
2.35 KB
4.84 KB

I have tested the patch and attached the end-user view before and after screenshots.

Before:
screenshot

After:
screenshot

My test makes me believe that this issue is now RTBC.

rachel_norfolk’s picture

Thanks for your very first contribution (at Drupalcamp London), Edit!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed c157935 and pushed to 8.1.x and 8.2.x. Thanks!

If people feel strongly we could even put this in 8.0.x as this only changes new installations and new placements of the powered by block - which I feel is a good decision.

  • alexpott committed eb99b79 on 8.2.x
    Issue #2604974 by Chi, tstoeckler, dcrocks, Edit Olah: Hide "Powered by...

  • alexpott committed c157935 on 8.1.x
    Issue #2604974 by Chi, tstoeckler, dcrocks, Edit Olah: Hide "Powered by...

Status: Fixed » Closed (fixed)

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