Magento 2: How to set default layout to 1column












2















I have no idea where to set the default layout in creating a page in the backend where I want it to set the layout to "1 Column" instead of the default value "Empty".



empty layout



Anyone have the idea?










share|improve this question
















bumped to the homepage by Community 1 min ago


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




















    2















    I have no idea where to set the default layout in creating a page in the backend where I want it to set the layout to "1 Column" instead of the default value "Empty".



    empty layout



    Anyone have the idea?










    share|improve this question
















    bumped to the homepage by Community 1 min ago


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


















      2












      2








      2








      I have no idea where to set the default layout in creating a page in the backend where I want it to set the layout to "1 Column" instead of the default value "Empty".



      empty layout



      Anyone have the idea?










      share|improve this question
















      I have no idea where to set the default layout in creating a page in the backend where I want it to set the layout to "1 Column" instead of the default value "Empty".



      empty layout



      Anyone have the idea?







      magento2 magento-2.1






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 3 '17 at 6:26









      ABHISHEK TRIPATHI

      1,8531726




      1,8531726










      asked Oct 3 '17 at 4:01









      nhinzkynhinzky

      4371819




      4371819





      bumped to the homepage by Community 1 min 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 1 min ago


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
























          2 Answers
          2






          active

          oldest

          votes


















          0














          You have to override UiComponent xml file and add this code into design fieldset >> field:



          <argument name="data" xsi:type="array">
          <item name="config" xsi:type="array">
          <item name="source" xsi:type="string">page</item>
          <item name="default" xsi:type="number">1</item>
          </item>
          </argument>





          share|improve this answer
























          • Thanks @Ronak Chauhan. Can you give me the path of the file that I need to change?

            – nhinzky
            Oct 3 '17 at 5:33











          • Which module you want to change ?

            – Ronak Chauhan
            Oct 3 '17 at 5:35











          • I provide you solution for content >> page

            – Ronak Chauhan
            Oct 3 '17 at 5:35











          • It's for Content->Page. Yeah i want it to have the default "1 Column" so that I don't need to edit it everytime.

            – nhinzky
            Oct 3 '17 at 5:39











          • ok then override file : /vendor/magento/module-cms/view/adminhtml/ui_component/cms_page_form.xml

            – Ronak Chauhan
            Oct 3 '17 at 5:40



















          0














          1. Create a UI Component XML extending file



          Create [Your_Namespace]/[Your_Module]/view/adminhtml/ui_component/cms_page_form.xml.



          (Also, add <module name="Magento_Cms"/> to the module's <sequence/> in module.xml.)



          2. Insert the following code



          Replace [1column] below without any other page_layout ID.



          <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
          <fieldset name="design">
          <field name="page_layout">
          <argument name="data" xsi:type="array">
          <item name="config" xsi:type="array">
          <item name="default" xsi:type="string">[1column]</item>
          </item>
          </argument>
          </field>
          </fieldset>
          </form>





          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%2f195594%2fmagento-2-how-to-set-default-layout-to-1column%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You have to override UiComponent xml file and add this code into design fieldset >> field:



            <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
            <item name="source" xsi:type="string">page</item>
            <item name="default" xsi:type="number">1</item>
            </item>
            </argument>





            share|improve this answer
























            • Thanks @Ronak Chauhan. Can you give me the path of the file that I need to change?

              – nhinzky
              Oct 3 '17 at 5:33











            • Which module you want to change ?

              – Ronak Chauhan
              Oct 3 '17 at 5:35











            • I provide you solution for content >> page

              – Ronak Chauhan
              Oct 3 '17 at 5:35











            • It's for Content->Page. Yeah i want it to have the default "1 Column" so that I don't need to edit it everytime.

              – nhinzky
              Oct 3 '17 at 5:39











            • ok then override file : /vendor/magento/module-cms/view/adminhtml/ui_component/cms_page_form.xml

              – Ronak Chauhan
              Oct 3 '17 at 5:40
















            0














            You have to override UiComponent xml file and add this code into design fieldset >> field:



            <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
            <item name="source" xsi:type="string">page</item>
            <item name="default" xsi:type="number">1</item>
            </item>
            </argument>





            share|improve this answer
























            • Thanks @Ronak Chauhan. Can you give me the path of the file that I need to change?

              – nhinzky
              Oct 3 '17 at 5:33











            • Which module you want to change ?

              – Ronak Chauhan
              Oct 3 '17 at 5:35











            • I provide you solution for content >> page

              – Ronak Chauhan
              Oct 3 '17 at 5:35











            • It's for Content->Page. Yeah i want it to have the default "1 Column" so that I don't need to edit it everytime.

              – nhinzky
              Oct 3 '17 at 5:39











            • ok then override file : /vendor/magento/module-cms/view/adminhtml/ui_component/cms_page_form.xml

              – Ronak Chauhan
              Oct 3 '17 at 5:40














            0












            0








            0







            You have to override UiComponent xml file and add this code into design fieldset >> field:



            <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
            <item name="source" xsi:type="string">page</item>
            <item name="default" xsi:type="number">1</item>
            </item>
            </argument>





            share|improve this answer













            You have to override UiComponent xml file and add this code into design fieldset >> field:



            <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
            <item name="source" xsi:type="string">page</item>
            <item name="default" xsi:type="number">1</item>
            </item>
            </argument>






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Oct 3 '17 at 5:11









            Ronak ChauhanRonak Chauhan

            4,25011449




            4,25011449













            • Thanks @Ronak Chauhan. Can you give me the path of the file that I need to change?

              – nhinzky
              Oct 3 '17 at 5:33











            • Which module you want to change ?

              – Ronak Chauhan
              Oct 3 '17 at 5:35











            • I provide you solution for content >> page

              – Ronak Chauhan
              Oct 3 '17 at 5:35











            • It's for Content->Page. Yeah i want it to have the default "1 Column" so that I don't need to edit it everytime.

              – nhinzky
              Oct 3 '17 at 5:39











            • ok then override file : /vendor/magento/module-cms/view/adminhtml/ui_component/cms_page_form.xml

              – Ronak Chauhan
              Oct 3 '17 at 5:40



















            • Thanks @Ronak Chauhan. Can you give me the path of the file that I need to change?

              – nhinzky
              Oct 3 '17 at 5:33











            • Which module you want to change ?

              – Ronak Chauhan
              Oct 3 '17 at 5:35











            • I provide you solution for content >> page

              – Ronak Chauhan
              Oct 3 '17 at 5:35











            • It's for Content->Page. Yeah i want it to have the default "1 Column" so that I don't need to edit it everytime.

              – nhinzky
              Oct 3 '17 at 5:39











            • ok then override file : /vendor/magento/module-cms/view/adminhtml/ui_component/cms_page_form.xml

              – Ronak Chauhan
              Oct 3 '17 at 5:40

















            Thanks @Ronak Chauhan. Can you give me the path of the file that I need to change?

            – nhinzky
            Oct 3 '17 at 5:33





            Thanks @Ronak Chauhan. Can you give me the path of the file that I need to change?

            – nhinzky
            Oct 3 '17 at 5:33













            Which module you want to change ?

            – Ronak Chauhan
            Oct 3 '17 at 5:35





            Which module you want to change ?

            – Ronak Chauhan
            Oct 3 '17 at 5:35













            I provide you solution for content >> page

            – Ronak Chauhan
            Oct 3 '17 at 5:35





            I provide you solution for content >> page

            – Ronak Chauhan
            Oct 3 '17 at 5:35













            It's for Content->Page. Yeah i want it to have the default "1 Column" so that I don't need to edit it everytime.

            – nhinzky
            Oct 3 '17 at 5:39





            It's for Content->Page. Yeah i want it to have the default "1 Column" so that I don't need to edit it everytime.

            – nhinzky
            Oct 3 '17 at 5:39













            ok then override file : /vendor/magento/module-cms/view/adminhtml/ui_component/cms_page_form.xml

            – Ronak Chauhan
            Oct 3 '17 at 5:40





            ok then override file : /vendor/magento/module-cms/view/adminhtml/ui_component/cms_page_form.xml

            – Ronak Chauhan
            Oct 3 '17 at 5:40













            0














            1. Create a UI Component XML extending file



            Create [Your_Namespace]/[Your_Module]/view/adminhtml/ui_component/cms_page_form.xml.



            (Also, add <module name="Magento_Cms"/> to the module's <sequence/> in module.xml.)



            2. Insert the following code



            Replace [1column] below without any other page_layout ID.



            <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
            <fieldset name="design">
            <field name="page_layout">
            <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
            <item name="default" xsi:type="string">[1column]</item>
            </item>
            </argument>
            </field>
            </fieldset>
            </form>





            share|improve this answer




























              0














              1. Create a UI Component XML extending file



              Create [Your_Namespace]/[Your_Module]/view/adminhtml/ui_component/cms_page_form.xml.



              (Also, add <module name="Magento_Cms"/> to the module's <sequence/> in module.xml.)



              2. Insert the following code



              Replace [1column] below without any other page_layout ID.



              <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
              <fieldset name="design">
              <field name="page_layout">
              <argument name="data" xsi:type="array">
              <item name="config" xsi:type="array">
              <item name="default" xsi:type="string">[1column]</item>
              </item>
              </argument>
              </field>
              </fieldset>
              </form>





              share|improve this answer


























                0












                0








                0







                1. Create a UI Component XML extending file



                Create [Your_Namespace]/[Your_Module]/view/adminhtml/ui_component/cms_page_form.xml.



                (Also, add <module name="Magento_Cms"/> to the module's <sequence/> in module.xml.)



                2. Insert the following code



                Replace [1column] below without any other page_layout ID.



                <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
                <fieldset name="design">
                <field name="page_layout">
                <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                <item name="default" xsi:type="string">[1column]</item>
                </item>
                </argument>
                </field>
                </fieldset>
                </form>





                share|improve this answer













                1. Create a UI Component XML extending file



                Create [Your_Namespace]/[Your_Module]/view/adminhtml/ui_component/cms_page_form.xml.



                (Also, add <module name="Magento_Cms"/> to the module's <sequence/> in module.xml.)



                2. Insert the following code



                Replace [1column] below without any other page_layout ID.



                <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
                <fieldset name="design">
                <field name="page_layout">
                <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                <item name="default" xsi:type="string">[1column]</item>
                </item>
                </argument>
                </field>
                </fieldset>
                </form>






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 3 at 17:54









                bassplayer7bassplayer7

                1,5781120




                1,5781120






























                    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%2f195594%2fmagento-2-how-to-set-default-layout-to-1column%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

                    What other Star Trek series did the main TNG cast show up in?

                    Berlina muro

                    Berlina aerponto