Magento 2 : Adding Cms block using Layout Update XML The 2019 Stack Overflow Developer Survey Results Are InAdding a custom block to the cms home pageMagento 1.8 static block in widget not showing?How can i rewrite TierPrice Block in Magento2convert widget block codes to phtml and xml layoutHow do I add a css class to a CMS static block?magento 2 captcha not rendering if I override layout xmlHow to create a cms block with existing block content using widget in Magento 2?Add CMS Block to Sidebar in whole magento 2 siteHow insert static block all CMS page sidebar left sidebar Magento 2.x?Magento 2 : hide sidebar on mobile view

Compute the product of 3 dictionaries and concatenate keys and values

What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?

Keeping a retro style to sci-fi spaceships?

Star Trek - X-shaped Item on Regula/Orbital Office Starbases

Deal with toxic manager when you can't quit

Mathematics of imaging the black hole

Old scifi movie from the 50s or 60s with men in solid red uniforms who interrogate a spy from the past

How much of the clove should I use when using big garlic heads?

How to type a long/em dash `—`

Cooking pasta in a water boiler

Pokemon Turn Based battle (Python)

Is it correct to say the Neural Networks are an alternative way of performing Maximum Likelihood Estimation? if not, why?

Is it safe to harvest rainwater that fell on solar panels?

Did any laptop computers have a built-in 5 1/4 inch floppy drive?

Can a rogue use sneak attack with weapons that have the thrown property even if they are not thrown?

How can I add encounters in the Lost Mine of Phandelver campaign without giving PCs too much XP?

Is it possible for absolutely everyone to attain enlightenment?

What is the meaning of Triage in Cybersec world?

What does Linus Torvalds mean when he says that Git "never ever" tracks a file?

If I can cast sorceries at instant speed, can I use sorcery-speed activated abilities at instant speed?

Is Cinnamon a desktop environment or a window manager? (Or both?)

Why not take a picture of a closer black hole?

Falsification in Math vs Science

Computing the expectation of the number of balls in a box



Magento 2 : Adding Cms block using Layout Update XML



The 2019 Stack Overflow Developer Survey Results Are InAdding a custom block to the cms home pageMagento 1.8 static block in widget not showing?How can i rewrite TierPrice Block in Magento2convert widget block codes to phtml and xml layoutHow do I add a css class to a CMS static block?magento 2 captcha not rendering if I override layout xmlHow to create a cms block with existing block content using widget in Magento 2?Add CMS Block to Sidebar in whole magento 2 siteHow insert static block all CMS page sidebar left sidebar Magento 2.x?Magento 2 : hide sidebar on mobile view



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















In order to create custom sidebar menus for my CMS pages in Magento 1, I used to be able to create a static block, and then use a widget to place it on all CMS pages that had a 2 column layout with left bar. That option is not avaialble in Magento 2.



So, for Magento 2, I created a block called "guidenav", and I want it to appear on certain CMS pages, and for those CMS pages I can using this code in Layout Update XML:



<referenceContainer name="sidebar.additional">
<block class="MagentoCmsBlockBlock" name="guidenav">
<arguments>
<argument name="block_id" xsi:type="string">guidenav</argument>
</arguments>
</block>
</referenceContainer>


The block isn't showing up. Any ideas?










share|improve this question
















bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • In Magento 2 also you can create a cms block for guidenav and use a widget to place it on all CMS pages.

    – Sejal Shah
    Jul 27 '17 at 5:16

















0















In order to create custom sidebar menus for my CMS pages in Magento 1, I used to be able to create a static block, and then use a widget to place it on all CMS pages that had a 2 column layout with left bar. That option is not avaialble in Magento 2.



So, for Magento 2, I created a block called "guidenav", and I want it to appear on certain CMS pages, and for those CMS pages I can using this code in Layout Update XML:



<referenceContainer name="sidebar.additional">
<block class="MagentoCmsBlockBlock" name="guidenav">
<arguments>
<argument name="block_id" xsi:type="string">guidenav</argument>
</arguments>
</block>
</referenceContainer>


The block isn't showing up. Any ideas?










share|improve this question
















bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • In Magento 2 also you can create a cms block for guidenav and use a widget to place it on all CMS pages.

    – Sejal Shah
    Jul 27 '17 at 5:16













0












0








0








In order to create custom sidebar menus for my CMS pages in Magento 1, I used to be able to create a static block, and then use a widget to place it on all CMS pages that had a 2 column layout with left bar. That option is not avaialble in Magento 2.



So, for Magento 2, I created a block called "guidenav", and I want it to appear on certain CMS pages, and for those CMS pages I can using this code in Layout Update XML:



<referenceContainer name="sidebar.additional">
<block class="MagentoCmsBlockBlock" name="guidenav">
<arguments>
<argument name="block_id" xsi:type="string">guidenav</argument>
</arguments>
</block>
</referenceContainer>


The block isn't showing up. Any ideas?










share|improve this question
















In order to create custom sidebar menus for my CMS pages in Magento 1, I used to be able to create a static block, and then use a widget to place it on all CMS pages that had a 2 column layout with left bar. That option is not avaialble in Magento 2.



So, for Magento 2, I created a block called "guidenav", and I want it to appear on certain CMS pages, and for those CMS pages I can using this code in Layout Update XML:



<referenceContainer name="sidebar.additional">
<block class="MagentoCmsBlockBlock" name="guidenav">
<arguments>
<argument name="block_id" xsi:type="string">guidenav</argument>
</arguments>
</block>
</referenceContainer>


The block isn't showing up. Any ideas?







magento2 layout blocks cms-block






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 22 '18 at 13:03









Teja Bhagavan Kollepara

2,98841949




2,98841949










asked Jul 26 '17 at 21:06









styzzzstyzzz

3432519




3432519





bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • In Magento 2 also you can create a cms block for guidenav and use a widget to place it on all CMS pages.

    – Sejal Shah
    Jul 27 '17 at 5:16

















  • In Magento 2 also you can create a cms block for guidenav and use a widget to place it on all CMS pages.

    – Sejal Shah
    Jul 27 '17 at 5:16
















In Magento 2 also you can create a cms block for guidenav and use a widget to place it on all CMS pages.

– Sejal Shah
Jul 27 '17 at 5:16





In Magento 2 also you can create a cms block for guidenav and use a widget to place it on all CMS pages.

– Sejal Shah
Jul 27 '17 at 5:16










1 Answer
1






active

oldest

votes


















0














I found the solution in case this will help anyone. In Magento 2, if you want to create a left side bar navigation, (and remove wishlist and compare), you need the following code in the CMS Page Layout Update XML (I dont like editing files if I dont have to, thats why I like sysing Layout Update XML). My block is called "guidenav" that calls the menu.



<referenceContainer name="sidebar.additional">
<referenceBlock name="catalog.compare.sidebar" remove="true"/>
<referenceBlock name="wishlist_sidebar" remove="true" />
<referenceBlock name="sale.reorder.sidebar" remove="true" />
<block class="MagentoCmsBlockBlock" name="guidenav">
<arguments>
<argument name="block_id" xsi:type="string">promo</argument>
</arguments>
</block>
</referenceContainer>





share|improve this answer

























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f186670%2fmagento-2-adding-cms-block-using-layout-update-xml%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I found the solution in case this will help anyone. In Magento 2, if you want to create a left side bar navigation, (and remove wishlist and compare), you need the following code in the CMS Page Layout Update XML (I dont like editing files if I dont have to, thats why I like sysing Layout Update XML). My block is called "guidenav" that calls the menu.



    <referenceContainer name="sidebar.additional">
    <referenceBlock name="catalog.compare.sidebar" remove="true"/>
    <referenceBlock name="wishlist_sidebar" remove="true" />
    <referenceBlock name="sale.reorder.sidebar" remove="true" />
    <block class="MagentoCmsBlockBlock" name="guidenav">
    <arguments>
    <argument name="block_id" xsi:type="string">promo</argument>
    </arguments>
    </block>
    </referenceContainer>





    share|improve this answer





























      0














      I found the solution in case this will help anyone. In Magento 2, if you want to create a left side bar navigation, (and remove wishlist and compare), you need the following code in the CMS Page Layout Update XML (I dont like editing files if I dont have to, thats why I like sysing Layout Update XML). My block is called "guidenav" that calls the menu.



      <referenceContainer name="sidebar.additional">
      <referenceBlock name="catalog.compare.sidebar" remove="true"/>
      <referenceBlock name="wishlist_sidebar" remove="true" />
      <referenceBlock name="sale.reorder.sidebar" remove="true" />
      <block class="MagentoCmsBlockBlock" name="guidenav">
      <arguments>
      <argument name="block_id" xsi:type="string">promo</argument>
      </arguments>
      </block>
      </referenceContainer>





      share|improve this answer



























        0












        0








        0







        I found the solution in case this will help anyone. In Magento 2, if you want to create a left side bar navigation, (and remove wishlist and compare), you need the following code in the CMS Page Layout Update XML (I dont like editing files if I dont have to, thats why I like sysing Layout Update XML). My block is called "guidenav" that calls the menu.



        <referenceContainer name="sidebar.additional">
        <referenceBlock name="catalog.compare.sidebar" remove="true"/>
        <referenceBlock name="wishlist_sidebar" remove="true" />
        <referenceBlock name="sale.reorder.sidebar" remove="true" />
        <block class="MagentoCmsBlockBlock" name="guidenav">
        <arguments>
        <argument name="block_id" xsi:type="string">promo</argument>
        </arguments>
        </block>
        </referenceContainer>





        share|improve this answer















        I found the solution in case this will help anyone. In Magento 2, if you want to create a left side bar navigation, (and remove wishlist and compare), you need the following code in the CMS Page Layout Update XML (I dont like editing files if I dont have to, thats why I like sysing Layout Update XML). My block is called "guidenav" that calls the menu.



        <referenceContainer name="sidebar.additional">
        <referenceBlock name="catalog.compare.sidebar" remove="true"/>
        <referenceBlock name="wishlist_sidebar" remove="true" />
        <referenceBlock name="sale.reorder.sidebar" remove="true" />
        <block class="MagentoCmsBlockBlock" name="guidenav">
        <arguments>
        <argument name="block_id" xsi:type="string">promo</argument>
        </arguments>
        </block>
        </referenceContainer>






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 5 '17 at 20:14









        tesar.hk

        306




        306










        answered Jul 27 '17 at 13:51









        styzzzstyzzz

        3432519




        3432519



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f186670%2fmagento-2-adding-cms-block-using-layout-update-xml%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Best approach to update all entries in a list that is paginated?Best way to add items to a paginated listChoose Your Country: Best Usability approachUpdate list when a user is viewing the list without annoying themWhen would the best day to update your webpage be?What should happen when I add a Row to a paginated, sorted listShould I adopt infinite scrolling or classical pagination?How to show user that page objects automatically updateWhat is the best location to locate the comments section in a list pageBest way to combine filtering and selecting items in a listWhen one of two inputs must be updated to satisfy a consistency criteria, which should you update (if at all)?

            Вунгтау (аеропорт) Загальні відомості | Див. також | Посилання | Навігаційне меню10°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.0833310°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.083337731608Vinh AirportVinh airport facelift improves serviceвиправивши або дописавши їївиправивши або дописавши їїр

            Тонконіг бульбистий Зміст Опис | Поширення | Екологія | Господарське значення | Примітки | Див. також | Література | Джерела | Посилання | Навігаційне меню1114601320038-241116202404kew-435458Poa bulbosaЭлектронный каталог сосудистых растений Азиатской России [Електронний каталог судинних рослин Азіатської Росії]Малышев Л. Л. Дикие родичи культурных растений. Poa bulbosa L. - Мятлик луковичный. [Малишев Л. Л. Дикі родичи культурних рослин. Poa bulbosa L. - Тонконіг бульбистий.]Мятлик (POA) Сем. Злаки (Мятликовые) [Тонконіг (POA) Род. Злаки (Тонконогові)]Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Description from Flora of China) [Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Опис від Флора Китаю)]Poa bulbosa L. – lipnice cibulkatá / lipnica cibulkatáPoa bulbosa в базі даних Poa bulbosa на сайті Poa bulbosa в базі даних «Global Biodiversity Information Facility» (GBIF)Poa bulbosa в базі даних «Euro + Med PlantBase» — інформаційному ресурсі для Євро-середземноморського розмаїття рослинPoa bulbosa L. на сайті «Плантариум»