Skip to main content
Bumped by Community user
Bumped by Community user
added 130 characters in body; edited title
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

How can I copy blocks placementblock placements and settings between themes?

Following is available for D7 but not for D8:

TriedHow to copy blocks placement and settings between themes? suggests that, in Drupal 7, I could run the following piece of code:two SQL queries to copy block placements and settings between themes.

DELETE FROM block WHERE theme = 'NEW-THEME'

INSERT INTO block (module, delta, theme, status, weight, region, custom, visibility, pages, title, cache, i18n_mode) (SELECT module, delta, 'NEW-THEME', status, weight, region, custom, visibility, pages, title, cache, i18n_mode FROM block WHERE theme = 'OLD-THEME')

How to copy blocks placement and settings between themes? What is the equivalent query/method I could use to achieve the same task in Drupal 8?

How can I copy blocks placement and settings between themes?

Following is available for D7 but not for D8:

Tried following piece of code:

DELETE FROM block WHERE theme = 'NEW-THEME'

INSERT INTO block (module, delta, theme, status, weight, region, custom, visibility, pages, title, cache, i18n_mode) (SELECT module, delta, 'NEW-THEME', status, weight, region, custom, visibility, pages, title, cache, i18n_mode FROM block WHERE theme = 'OLD-THEME')

How to copy blocks placement and settings between themes?

How can I copy block placements and settings between themes?

How to copy blocks placement and settings between themes? suggests that, in Drupal 7, I could run the following two SQL queries to copy block placements and settings between themes.

DELETE FROM block WHERE theme = 'NEW-THEME'

INSERT INTO block (module, delta, theme, status, weight, region, custom, visibility, pages, title, cache, i18n_mode) (SELECT module, delta, 'NEW-THEME', status, weight, region, custom, visibility, pages, title, cache, i18n_mode FROM block WHERE theme = 'OLD-THEME')

What is the equivalent query/method I could use to achieve the same task in Drupal 8?

Removed Drupal version tag from title
Link
leymannx
  • 18.8k
  • 6
  • 72
  • 126

How tocan I copy blocks placement and settings between themes? for D8

Bumped by Community user
Bumped by Community user
added 355 characters in body
Source Link

Following is available for D7 but not sure for D8.:

Tried following piece of code:

DELETE FROM block WHERE theme = 'NEW-THEME'

INSERT INTO block (module, delta, theme, status, weight, region, custom, visibility, pages, title, cache, i18n_mode) (SELECT module, delta, 'NEW-THEME', status, weight, region, custom, visibility, pages, title, cache, i18n_mode FROM block WHERE theme = 'OLD-THEME')

How to copy blocks placement and settings between themes?

Following is available for D7 but not sure for D8.

How to copy blocks placement and settings between themes?

Following is available for D7 but not for D8:

Tried following piece of code:

DELETE FROM block WHERE theme = 'NEW-THEME'

INSERT INTO block (module, delta, theme, status, weight, region, custom, visibility, pages, title, cache, i18n_mode) (SELECT module, delta, 'NEW-THEME', status, weight, region, custom, visibility, pages, title, cache, i18n_mode FROM block WHERE theme = 'OLD-THEME')

How to copy blocks placement and settings between themes?

Source Link
Loading