Skip to content

static cms blocks not displaying when added to default.xml under theme #5433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dmcmillin opened this issue Jul 4, 2016 · 0 comments
Closed

Comments

@dmcmillin
Copy link

Steps to reproduce

  1. Install Magento from 2.0.7 branch.
  2. find luma theme or any theme and modify it
  3. modify it with the following additions.

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceContainer name="header.panel"> <block class="Magento\Framework\View\Element\Html\Links" name="header.links"> <arguments> <argument name="css_class" xsi:type="string">header links</argument> </arguments> </block> </referenceContainer> <block class="Magento\Cms\Block\Block" name="socialimg"> <arguments> <argument name="block_id" xsi:type="string">socialimg</argument> </arguments> </block> <referenceBlock name="logo"> <arguments> <argument name="logo_img_width" xsi:type="number">148</argument> <argument name="logo_img_height" xsi:type="number">43</argument> </arguments> </referenceBlock> <block class="Magento\Cms\Block\Block" name="socialimg"> <arguments> <argument name="block_id" xsi:type="string">socialimg</argument> </arguments> </block> <referenceContainer name="footer"> <block class="Magento\Store\Block\Switcher" name="store_switcher" as="store_switcher" after="footer_links" template="switch/stores.phtml"/> </referenceContainer> <referenceBlock name="report.bugs" remove="true"/> <move element="copyright" destination="before.body.end"/> </body> </page>
4. add a cms static block with the id socialimg

Expected result

  1. should display the block
  2. ...

Actual result

  1. nothing shows up in logs or even as an error
magento-engcom-team pushed a commit that referenced this issue Mar 11, 2020
[honey] MC-31616: Forward-port 2.3.5 GraphQL bug fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant