- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2021
09:41 AM
09-21-2021
09:41 AM
Layout Update XML field goes empty every time I fill it
I am trying to add this code to the Layout Update XML field in Home page
<referenceContainer name="slide.showcase"> <block class="Magento\Cms\Block\Block" name="home-slide15"> <arguments> <argument name="block_id" xsi:type="string">home-slide15</argument> </arguments> </block> </referenceContainer>
But I found something strange,
Every time I add this code to Layout Update XML field and then save the page, when I check the Layout Update XML field again, I find it empty, it turns to empty as if no code was added.
what could be the problem of this??
Labels:
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2021
04:36 AM
09-29-2021
04:36 AM
Re: Layout Update XML field goes empty every time I fill it
Hi @mbussnsgmafa14,
Greetings!
You are placing this code in the wrong field. You just need to add this code to the layout.xml file.
Put this same code layout.xml in the directory of the block which you want to call.
Hope this will help you to solve your problem.
If not, feel free to contact us.
Solved?
Click KUDOS and accept as a solution.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2021
11:01 PM
11-25-2021
11:01 PM