Add side bar in custom layout in magento2?
Help! My Character is too much for her story!
Why do phishing e-mails use faked e-mail addresses instead of the real one?
What can I do if someone tampers with my SSH public key?
I am the person who abides by rules but breaks the rules . Who am I
Should I apply for my boss's promotion?
Why do we say 'Pairwise Disjoint', rather than 'Disjoint'?
How to make sure I'm assertive enough in contact with subordinates?
Cycles on the torus
How to distinguish easily different soldier of ww2?
How do you make a gun that shoots melee weapons and/or swords?
Boss Telling direct supervisor I snitched
Is "cogitate" used appropriately in "I cogitate that success relies on hard work"?
Vector-transposing function
Limpar string com Regex
How to recover against Snake as a heavyweight character?
After Brexit, will the EU recognize British passports that are valid for more than ten years?
How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?
Why would /etc/passwd be used every time someone executes `ls -l` command?
Does an unused member variable take up memory?
Where is the License file location for Identity Server in Sitecore 9.1?
A running toilet that stops itself
Interpretation of linear regression interaction term plot
How spaceships determine each other's mass in space?
I've given my players a lot of magic items. Is it reasonable for me to give them harder encounters?
Add side bar in custom layout in magento2?
I want to display the subcategory and product tabs in category page .So i have customise the layout file .
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="category.products" remove="true"/>
<referenceBlock name="catalog.leftnav" remove="true"/>
<!--<move element="catalog.leftnav" destination="products.catgeory.tab" />-->
<!--<move element="catalog.leftnav" destination="sidebar.main" before="-"/>-->
<referenceContainer name="content">
<block class="XXXCategoryBlockCategoryView" name="sub.category" template="XXX_Category::category/sub_category_with_products.phtml">
<block class="MagentoCatalogBlockCategoryView" name="products.category.tab" template="XXX_Category::category/products.phtml" group="subcategories_and_products" after="sub.category.tab">
<container name="sidebar.main" as="sidebar_main" label="Sidebar Main"/>
<block class="MagentoCatalogBlockProductListProduct" name="category.products.list" as="product_list" template="Magento_Catalog::product/list.phtml">
<container name="category.product.list.additional" as="additional" />
<block class="MagentoFrameworkViewElementRendererList" name="category.product.type.details.renderers" as="details.renderers">
<block class="MagentoFrameworkViewElementTemplate" name="category.product.type.details.renderers.default" as="default"/>
</block>
<block class="MagentoCatalogBlockProductProductListItemContainer" name="category.product.addto" as="addto">
<block class="MagentoCatalogBlockProductProductListItemAddToCompare"
name="category.product.addto.compare" as="compare"
template="Magento_Catalog::product/list/addto/compare.phtml"/>
</block>
<block class="MagentoCatalogBlockProductProductListToolbar" name="product_list_toolbar" template="Magento_Catalog::product/list/toolbar.phtml">
<block class="MagentoThemeBlockHtmlPager" name="product_list_toolbar_pager"/>
</block>
<action method="setToolbarBlockName">
<argument name="name" xsi:type="string">product_list_toolbar</argument>
</action>
</block>
<arguments>
<argument translate="true" name="title" xsi:type="string">All Products</argument>
</arguments>
</block>
<block class="XXXCategoryBlockCategoryView" name="category.sub.tab" template="XXX_Category::category/sub_category.phtml" group="subcategories_and_products">
<arguments>
<argument translate="true" name="title" xsi:type="string">Available Design</argument>
</arguments>
</block>
</block>
</referenceContainer>
</body>
</page>
But the sidebar not display in tab section ...
How to do this..
Thanks.
layout magento2.3 php-7.2
add a comment |
I want to display the subcategory and product tabs in category page .So i have customise the layout file .
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="category.products" remove="true"/>
<referenceBlock name="catalog.leftnav" remove="true"/>
<!--<move element="catalog.leftnav" destination="products.catgeory.tab" />-->
<!--<move element="catalog.leftnav" destination="sidebar.main" before="-"/>-->
<referenceContainer name="content">
<block class="XXXCategoryBlockCategoryView" name="sub.category" template="XXX_Category::category/sub_category_with_products.phtml">
<block class="MagentoCatalogBlockCategoryView" name="products.category.tab" template="XXX_Category::category/products.phtml" group="subcategories_and_products" after="sub.category.tab">
<container name="sidebar.main" as="sidebar_main" label="Sidebar Main"/>
<block class="MagentoCatalogBlockProductListProduct" name="category.products.list" as="product_list" template="Magento_Catalog::product/list.phtml">
<container name="category.product.list.additional" as="additional" />
<block class="MagentoFrameworkViewElementRendererList" name="category.product.type.details.renderers" as="details.renderers">
<block class="MagentoFrameworkViewElementTemplate" name="category.product.type.details.renderers.default" as="default"/>
</block>
<block class="MagentoCatalogBlockProductProductListItemContainer" name="category.product.addto" as="addto">
<block class="MagentoCatalogBlockProductProductListItemAddToCompare"
name="category.product.addto.compare" as="compare"
template="Magento_Catalog::product/list/addto/compare.phtml"/>
</block>
<block class="MagentoCatalogBlockProductProductListToolbar" name="product_list_toolbar" template="Magento_Catalog::product/list/toolbar.phtml">
<block class="MagentoThemeBlockHtmlPager" name="product_list_toolbar_pager"/>
</block>
<action method="setToolbarBlockName">
<argument name="name" xsi:type="string">product_list_toolbar</argument>
</action>
</block>
<arguments>
<argument translate="true" name="title" xsi:type="string">All Products</argument>
</arguments>
</block>
<block class="XXXCategoryBlockCategoryView" name="category.sub.tab" template="XXX_Category::category/sub_category.phtml" group="subcategories_and_products">
<arguments>
<argument translate="true" name="title" xsi:type="string">Available Design</argument>
</arguments>
</block>
</block>
</referenceContainer>
</body>
</page>
But the sidebar not display in tab section ...
How to do this..
Thanks.
layout magento2.3 php-7.2
add a comment |
I want to display the subcategory and product tabs in category page .So i have customise the layout file .
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="category.products" remove="true"/>
<referenceBlock name="catalog.leftnav" remove="true"/>
<!--<move element="catalog.leftnav" destination="products.catgeory.tab" />-->
<!--<move element="catalog.leftnav" destination="sidebar.main" before="-"/>-->
<referenceContainer name="content">
<block class="XXXCategoryBlockCategoryView" name="sub.category" template="XXX_Category::category/sub_category_with_products.phtml">
<block class="MagentoCatalogBlockCategoryView" name="products.category.tab" template="XXX_Category::category/products.phtml" group="subcategories_and_products" after="sub.category.tab">
<container name="sidebar.main" as="sidebar_main" label="Sidebar Main"/>
<block class="MagentoCatalogBlockProductListProduct" name="category.products.list" as="product_list" template="Magento_Catalog::product/list.phtml">
<container name="category.product.list.additional" as="additional" />
<block class="MagentoFrameworkViewElementRendererList" name="category.product.type.details.renderers" as="details.renderers">
<block class="MagentoFrameworkViewElementTemplate" name="category.product.type.details.renderers.default" as="default"/>
</block>
<block class="MagentoCatalogBlockProductProductListItemContainer" name="category.product.addto" as="addto">
<block class="MagentoCatalogBlockProductProductListItemAddToCompare"
name="category.product.addto.compare" as="compare"
template="Magento_Catalog::product/list/addto/compare.phtml"/>
</block>
<block class="MagentoCatalogBlockProductProductListToolbar" name="product_list_toolbar" template="Magento_Catalog::product/list/toolbar.phtml">
<block class="MagentoThemeBlockHtmlPager" name="product_list_toolbar_pager"/>
</block>
<action method="setToolbarBlockName">
<argument name="name" xsi:type="string">product_list_toolbar</argument>
</action>
</block>
<arguments>
<argument translate="true" name="title" xsi:type="string">All Products</argument>
</arguments>
</block>
<block class="XXXCategoryBlockCategoryView" name="category.sub.tab" template="XXX_Category::category/sub_category.phtml" group="subcategories_and_products">
<arguments>
<argument translate="true" name="title" xsi:type="string">Available Design</argument>
</arguments>
</block>
</block>
</referenceContainer>
</body>
</page>
But the sidebar not display in tab section ...
How to do this..
Thanks.
layout magento2.3 php-7.2
I want to display the subcategory and product tabs in category page .So i have customise the layout file .
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="category.products" remove="true"/>
<referenceBlock name="catalog.leftnav" remove="true"/>
<!--<move element="catalog.leftnav" destination="products.catgeory.tab" />-->
<!--<move element="catalog.leftnav" destination="sidebar.main" before="-"/>-->
<referenceContainer name="content">
<block class="XXXCategoryBlockCategoryView" name="sub.category" template="XXX_Category::category/sub_category_with_products.phtml">
<block class="MagentoCatalogBlockCategoryView" name="products.category.tab" template="XXX_Category::category/products.phtml" group="subcategories_and_products" after="sub.category.tab">
<container name="sidebar.main" as="sidebar_main" label="Sidebar Main"/>
<block class="MagentoCatalogBlockProductListProduct" name="category.products.list" as="product_list" template="Magento_Catalog::product/list.phtml">
<container name="category.product.list.additional" as="additional" />
<block class="MagentoFrameworkViewElementRendererList" name="category.product.type.details.renderers" as="details.renderers">
<block class="MagentoFrameworkViewElementTemplate" name="category.product.type.details.renderers.default" as="default"/>
</block>
<block class="MagentoCatalogBlockProductProductListItemContainer" name="category.product.addto" as="addto">
<block class="MagentoCatalogBlockProductProductListItemAddToCompare"
name="category.product.addto.compare" as="compare"
template="Magento_Catalog::product/list/addto/compare.phtml"/>
</block>
<block class="MagentoCatalogBlockProductProductListToolbar" name="product_list_toolbar" template="Magento_Catalog::product/list/toolbar.phtml">
<block class="MagentoThemeBlockHtmlPager" name="product_list_toolbar_pager"/>
</block>
<action method="setToolbarBlockName">
<argument name="name" xsi:type="string">product_list_toolbar</argument>
</action>
</block>
<arguments>
<argument translate="true" name="title" xsi:type="string">All Products</argument>
</arguments>
</block>
<block class="XXXCategoryBlockCategoryView" name="category.sub.tab" template="XXX_Category::category/sub_category.phtml" group="subcategories_and_products">
<arguments>
<argument translate="true" name="title" xsi:type="string">Available Design</argument>
</arguments>
</block>
</block>
</referenceContainer>
</body>
</page>
But the sidebar not display in tab section ...
How to do this..
Thanks.
layout magento2.3 php-7.2
layout magento2.3 php-7.2
asked 2 mins ago
Mano MMano M
966219
966219
add a comment |
add a comment |
0
active
oldest
votes
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%2f265111%2fadd-side-bar-in-custom-layout-in-magento2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f265111%2fadd-side-bar-in-custom-layout-in-magento2%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