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.
Steps to reproduce:
- Create a view with a block display mode.
- Make the title of the block and the block name different.
- Create a ds block field using that view and check "Use block title as the field label".
- Add the block field to an entity's display and make the Name visible.
- Create appropriate sample data, view the output. The block name, which is only supposed to be the internal name, will display as the title
View configuration
Before patch
After patch
Patch coming in first comment.
Comment | File | Size | Author |
---|---|---|---|
#5 | ds-block_field_override_title_from_view-2650470-5-D8.patch | 9.76 KB | floydm |
#5 | interdiff-3-5.txt | 300 bytes | floydm |
Comments
Comment #2
floydm CreditAttribution: floydm at Affinity Bridge commentedPatch attached.
Comment #3
floydm CreditAttribution: floydm at Affinity Bridge commentedAdding a test for this change and a test block view display.
Note that I imported views.view.ds-testing.yml into a clean install running the current Drupal 8.0.x branch, added the block display mode, and reexported the views.view.ds-testing.yml file. A few additional changes were included in the test view export other than just adding the block display. As far I as I know these changes reflect the current state of views exporting and are appropriate to include. Let me know if I am mistaken.
Comment #4
aspilicious CreditAttribution: aspilicious commentedYou're right, but is views_ui needed for the test?
Comment #5
floydm CreditAttribution: floydm at Affinity Bridge commentedNo, views_ui is not required. Nor is field_ui or taxonomy.
Patch rerolled with those modules removed.
Comment #6
aspilicious CreditAttribution: aspilicious commentedCode looks good, I'll test this today.
Comment #7
aspilicious CreditAttribution: aspilicious commentedThnx!