Magento 2: How to set default layout to 1column
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".
Anyone have the idea?
magento2 magento-2.1
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.
add a comment |
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".
Anyone have the idea?
magento2 magento-2.1
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.
add a comment |
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".
Anyone have the idea?
magento2 magento-2.1
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".
Anyone have the idea?
magento2 magento-2.1
magento2 magento-2.1
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.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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>
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
|
show 3 more comments
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>
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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>
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
|
show 3 more comments
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>
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
|
show 3 more comments
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>
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>
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
|
show 3 more comments
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
|
show 3 more comments
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>
add a comment |
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>
add a comment |
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>
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>
answered Jan 3 at 17:54
bassplayer7bassplayer7
1,5781120
1,5781120
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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