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
When placing block on a page, you can set the block machine name. But the configuration of this block depends on the theme you place your block in.
On the same websites, if there are multiple themes, you can't place the same block on another theme with the same machine name because it is already used.
Proposed resolution
Replace blocks machine name, for example:
- block.block.book_navigation.yml => block.block.olivero_book_navigation.yml
- block.block.primary_admin_actions.yml => block.block.olivero_primary_admin_actions.yml
Remaining tasks
- Make a patch
- Review
Comment | File | Size | Author |
---|---|---|---|
#11 | 3187899-11.patch | 2.17 KB | ameymudras |
#3 | Capture d’écran de 2020-12-11 15-57-27.png | 125.93 KB | Grimreaper |
#3 | Capture d’écran de 2020-12-11 15-57-16.png | 194.6 KB | Grimreaper |
#3 | Capture d’écran de 2020-12-11 15-57-11.png | 182.16 KB | Grimreaper |
Issue fork drupal-3187899
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
GrimreaperI have tested and the two concerned blocks are not affected by the machine name renaming.
See attached screenshots.
Comment #5
xjmEdit: Disregard earlier comment; this is default config.
Comment #6
xjmComment #10
andy-blumNeeds reroll/rebase.
Comment #11
ameymudras CreditAttribution: ameymudras at Salsa Digital commentedComment #12
Gauravvvv CreditAttribution: Gauravvvv at Axelerant for Drupal India Association commentedThis has been fixed in #3278696: Rename Oliveros block.block.book_navigation.yml and block.block.primary_admin_actions.yml confirm standard
We can close this issue.
Comment #13
Gauravvvv CreditAttribution: Gauravvvv at Axelerant for Drupal India Association commented