Magento – Magento 2: Content blocks with same identifier (e.g. “contact-us-info”) not shown in second Store View. Why doesn’t it work like with content pages

blockslocalisationmagento2store-view

I am beginner and testing Magento 2.0.1 with the Luma template to setup a dual language shop. I have created a second Store view for the second language (German) but new blocks with same identifiers are simply not shown. I have followed the same approach as when creating new content pages earlier, which worked well and as expected. But not so for the content blocks e.g. "contact-us-info" or "footer-links-block" 🙁

These are my steps:

  1. Limit the Store View of an existing block, e.g. "contact-us-info" to the "Default Store View" (English)
  2. Copy the contents of that block and create a new block with the same identifier for the second Store View (German). However, the block is simply not shown in the frontend after I switch to the second Store View in the frontend.

More puzzling: Even if I change the identifier e.g. from "contact-us-info" to "contact-Blabla__" the block is still shown as before! It appears the block identifier is not actually used at all (hard-linked?).

Question: How can I create a second (translated) contents block for a different Store View? What am I missing?? Could somebody please be so kind to drop me a hint what I am doing wrong?

Best Answer

did you add this block as a widget on a cms page?

I just testet it. The widget is saved with the actual block_id, this is why it always tries to access the same block (and can't do that when it is not in the store view).

you can manipulate the widget by deactivating the wysiwyg editor and then put the block identifier in the block_id var instead of the actual id.

Seems like a bug in the widget.

Related Topic