Magento 2 - Custom Page Layout Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Magento 2 - how to make a custom (home) page-layoutCreating a custom homepage template in Magento2Custom page templates in Magento 2How to display some module (<block>) at a particular page (main)Adding custom layouts for CMS and Category use with custom module troublelocal.xml file is not pulling in my phtml layoutEmpty page displaying in magentoMagento new custom block moduleCreate Simple Controller Not Working In My Module?Create Simple Controller Not Working In my moduleCustom page layout handleCreate Simple Controller Not Working In My Module in Magento 1.9.2?Magento 1.9.3 calling a custom block in cart page unsuccessfulMagento 1.9 add layout and template to custom module in admin

Why does my GNOME settings mention "Moto C Plus"?

Is there a way to convert Wolfram Language expression to string?

Trying to enter the Fox's den

Why these surprising proportionalities of integrals involving odd zeta values?

Why do C and C++ allow the expression (int) + 4*5?

Short story about an alien named Ushtu(?) coming from a future Earth, when ours was destroyed by a nuclear explosion

Assertions In A Mock Callout Test

Is Vivien of the Wilds + Wilderness Reclamation a competitive combo?

Can the van der Waals coefficients be negative in the van der Waals equation for real gases?

"Destructive force" carried by a B-52?

Continue tikz picture on next page

What helicopter has the most rotor blades?

Are there any AGPL-style licences that require source code modifications to be public?

Why is one lightbulb in a string illuminated?

What is the ongoing value of the Kanban board to the developers as opposed to management

How to charge percentage of transaction cost?

What is the definining line between a helicopter and a drone a person can ride in?

Does using the Inspiration rules for character defects encourage My Guy Syndrome?

Protagonist's race is hidden - should I reveal it?

Can 'non' with gerundive mean both lack of obligation and negative obligation?

Will I be more secure with my own router behind my ISP's router?

Is there a verb for listening stealthily?

Why does BitLocker not use RSA?

Compiling and throwing simple dynamic exceptions at runtime for JVM



Magento 2 - Custom Page Layout



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Magento 2 - how to make a custom (home) page-layoutCreating a custom homepage template in Magento2Custom page templates in Magento 2How to display some module (<block>) at a particular page (main)Adding custom layouts for CMS and Category use with custom module troublelocal.xml file is not pulling in my phtml layoutEmpty page displaying in magentoMagento new custom block moduleCreate Simple Controller Not Working In My Module?Create Simple Controller Not Working In my moduleCustom page layout handleCreate Simple Controller Not Working In My Module in Magento 1.9.2?Magento 1.9.3 calling a custom block in cart page unsuccessfulMagento 1.9 add layout and template to custom module in admin



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








5















I wish to add a custom home page layout in Magento 2.



Dropdown



In Magento 1, it's very simple, i create my module :



<?xml version="1.0"?>
<config>
<modules>
<Vendor_Custom>
<codePool>local</codePool>
<active>true</active>
</Vendor_Custom>
</modules>
</config>


and i create a config.xml



<?xml version="1.0"?>
<config>
<global>
<page>
<layouts>
<custom_home_page>
<label>Custom Home Page</label>
<template>page/home.phtml</template>
</custom_home_page>
</layouts>
</page>
</global>
</config>


It's possible to do something similar in Magento 2?










share|improve this question






















  • See also the topic on creating a theme in the Frontend Developers Guide.

    – Steve Johnson
    Jan 3 '16 at 15:46

















5















I wish to add a custom home page layout in Magento 2.



Dropdown



In Magento 1, it's very simple, i create my module :



<?xml version="1.0"?>
<config>
<modules>
<Vendor_Custom>
<codePool>local</codePool>
<active>true</active>
</Vendor_Custom>
</modules>
</config>


and i create a config.xml



<?xml version="1.0"?>
<config>
<global>
<page>
<layouts>
<custom_home_page>
<label>Custom Home Page</label>
<template>page/home.phtml</template>
</custom_home_page>
</layouts>
</page>
</global>
</config>


It's possible to do something similar in Magento 2?










share|improve this question






















  • See also the topic on creating a theme in the Frontend Developers Guide.

    – Steve Johnson
    Jan 3 '16 at 15:46













5












5








5


3






I wish to add a custom home page layout in Magento 2.



Dropdown



In Magento 1, it's very simple, i create my module :



<?xml version="1.0"?>
<config>
<modules>
<Vendor_Custom>
<codePool>local</codePool>
<active>true</active>
</Vendor_Custom>
</modules>
</config>


and i create a config.xml



<?xml version="1.0"?>
<config>
<global>
<page>
<layouts>
<custom_home_page>
<label>Custom Home Page</label>
<template>page/home.phtml</template>
</custom_home_page>
</layouts>
</page>
</global>
</config>


It's possible to do something similar in Magento 2?










share|improve this question














I wish to add a custom home page layout in Magento 2.



Dropdown



In Magento 1, it's very simple, i create my module :



<?xml version="1.0"?>
<config>
<modules>
<Vendor_Custom>
<codePool>local</codePool>
<active>true</active>
</Vendor_Custom>
</modules>
</config>


and i create a config.xml



<?xml version="1.0"?>
<config>
<global>
<page>
<layouts>
<custom_home_page>
<label>Custom Home Page</label>
<template>page/home.phtml</template>
</custom_home_page>
</layouts>
</page>
</global>
</config>


It's possible to do something similar in Magento 2?







magento2 module layout template






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 2 '16 at 22:46









Eric ArbeloaEric Arbeloa

26112




26112












  • See also the topic on creating a theme in the Frontend Developers Guide.

    – Steve Johnson
    Jan 3 '16 at 15:46

















  • See also the topic on creating a theme in the Frontend Developers Guide.

    – Steve Johnson
    Jan 3 '16 at 15:46
















See also the topic on creating a theme in the Frontend Developers Guide.

– Steve Johnson
Jan 3 '16 at 15:46





See also the topic on creating a theme in the Frontend Developers Guide.

– Steve Johnson
Jan 3 '16 at 15:46










2 Answers
2






active

oldest

votes


















13














Create layouts.xml following location:




[namespace]/[modulename]/view/frontend/layouts.xml


Content should be




<?xml version="1.0" encoding="UTF-8"?>
<page_layouts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/PageLayout/etc/layouts.xsd">
<layout id="homepage">
<label translate="true">Custom Homepage</label>
</layout>
</page_layouts>


Create your new custom page layout (ex: homepage.xml) following location:




[namespace]/[modulename]/view/frontend/page_layout/homepage.xml


Content should be well structure page layout. So in your case copy of existing page layout into your custom page layout. All page layouts locate:




magento/module-theme/view/frontend/page_layout/*





share|improve this answer






























    7














    Use 1st answer for page layout updates, but change locations:



    For layouts.xml move it to


    app/design/[Theme_Vendor]/[Theme_name]/Magento_Theme/ 

    and

    For homepage.xml move it to


    app/design/[Theme_Vendor]/[Theme_name]/Magento_Theme/page_layout/ 


    I've tried 1st answer example but it didn't work.






    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%2f95729%2fmagento-2-custom-page-layout%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









      13














      Create layouts.xml following location:




      [namespace]/[modulename]/view/frontend/layouts.xml


      Content should be




      <?xml version="1.0" encoding="UTF-8"?>
      <page_layouts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/PageLayout/etc/layouts.xsd">
      <layout id="homepage">
      <label translate="true">Custom Homepage</label>
      </layout>
      </page_layouts>


      Create your new custom page layout (ex: homepage.xml) following location:




      [namespace]/[modulename]/view/frontend/page_layout/homepage.xml


      Content should be well structure page layout. So in your case copy of existing page layout into your custom page layout. All page layouts locate:




      magento/module-theme/view/frontend/page_layout/*





      share|improve this answer



























        13














        Create layouts.xml following location:




        [namespace]/[modulename]/view/frontend/layouts.xml


        Content should be




        <?xml version="1.0" encoding="UTF-8"?>
        <page_layouts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/PageLayout/etc/layouts.xsd">
        <layout id="homepage">
        <label translate="true">Custom Homepage</label>
        </layout>
        </page_layouts>


        Create your new custom page layout (ex: homepage.xml) following location:




        [namespace]/[modulename]/view/frontend/page_layout/homepage.xml


        Content should be well structure page layout. So in your case copy of existing page layout into your custom page layout. All page layouts locate:




        magento/module-theme/view/frontend/page_layout/*





        share|improve this answer

























          13












          13








          13







          Create layouts.xml following location:




          [namespace]/[modulename]/view/frontend/layouts.xml


          Content should be




          <?xml version="1.0" encoding="UTF-8"?>
          <page_layouts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/PageLayout/etc/layouts.xsd">
          <layout id="homepage">
          <label translate="true">Custom Homepage</label>
          </layout>
          </page_layouts>


          Create your new custom page layout (ex: homepage.xml) following location:




          [namespace]/[modulename]/view/frontend/page_layout/homepage.xml


          Content should be well structure page layout. So in your case copy of existing page layout into your custom page layout. All page layouts locate:




          magento/module-theme/view/frontend/page_layout/*





          share|improve this answer













          Create layouts.xml following location:




          [namespace]/[modulename]/view/frontend/layouts.xml


          Content should be




          <?xml version="1.0" encoding="UTF-8"?>
          <page_layouts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/PageLayout/etc/layouts.xsd">
          <layout id="homepage">
          <label translate="true">Custom Homepage</label>
          </layout>
          </page_layouts>


          Create your new custom page layout (ex: homepage.xml) following location:




          [namespace]/[modulename]/view/frontend/page_layout/homepage.xml


          Content should be well structure page layout. So in your case copy of existing page layout into your custom page layout. All page layouts locate:




          magento/module-theme/view/frontend/page_layout/*






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 3 '16 at 4:52









          Sohel RanaSohel Rana

          23.4k34461




          23.4k34461























              7














              Use 1st answer for page layout updates, but change locations:



              For layouts.xml move it to


              app/design/[Theme_Vendor]/[Theme_name]/Magento_Theme/ 

              and

              For homepage.xml move it to


              app/design/[Theme_Vendor]/[Theme_name]/Magento_Theme/page_layout/ 


              I've tried 1st answer example but it didn't work.






              share|improve this answer





























                7














                Use 1st answer for page layout updates, but change locations:



                For layouts.xml move it to


                app/design/[Theme_Vendor]/[Theme_name]/Magento_Theme/ 

                and

                For homepage.xml move it to


                app/design/[Theme_Vendor]/[Theme_name]/Magento_Theme/page_layout/ 


                I've tried 1st answer example but it didn't work.






                share|improve this answer



























                  7












                  7








                  7







                  Use 1st answer for page layout updates, but change locations:



                  For layouts.xml move it to


                  app/design/[Theme_Vendor]/[Theme_name]/Magento_Theme/ 

                  and

                  For homepage.xml move it to


                  app/design/[Theme_Vendor]/[Theme_name]/Magento_Theme/page_layout/ 


                  I've tried 1st answer example but it didn't work.






                  share|improve this answer















                  Use 1st answer for page layout updates, but change locations:



                  For layouts.xml move it to


                  app/design/[Theme_Vendor]/[Theme_name]/Magento_Theme/ 

                  and

                  For homepage.xml move it to


                  app/design/[Theme_Vendor]/[Theme_name]/Magento_Theme/page_layout/ 


                  I've tried 1st answer example but it didn't work.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 5 mins ago









                  stemon

                  31




                  31










                  answered May 24 '16 at 13:46









                  Vasilii BurlacuVasilii Burlacu

                  19826




                  19826



























                      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%2f95729%2fmagento-2-custom-page-layout%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

                      Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

                      How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2

                      Nissan Patrol Зміст Перше покоління — 4W60 (1951-1960) | Друге покоління — 60 series (1960-1980) | Третє покоління (1980–2002) | Четверте покоління — Y60 (1987–1998) | П'яте покоління — Y61 (1997–2013) | Шосте покоління — Y62 (2010- ) | Посилання | Зноски | Навігаційне менюОфіційний український сайтТест-драйв Nissan Patrol 2010 7-го поколінняNissan PatrolКак мы тестировали Nissan Patrol 2016рвиправивши або дописавши її