Skip to content

Can't cancel removal of a block or container in layout by setting remove attribute value to false #1931

Closed
@thomasnordkvist

Description

@thomasnordkvist

I inherit the blank theme and i wanted to have the top.links visible in the checkout so i created this file:

Vendor/Theme/Magento_Checkout/layout/checkout_index_index.xml
containing this:

<?xml version="1.0"?>
<!--
/**
 * Copyright © 2015 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="header.panel" remove="false"/>
    </body>
</page>

Reading This i understand, that it sould now be possible to cancel a removal instruction with the above instruction, but it doesn't seem to work.

I know the file is parsed, and included in the layout, because if i add a block from this file it will show up on the checkout page.

/Thomas

Metadata

Metadata

Labels

Area: FrontendFixed in 2.1.xThe issue has been fixed in 2.1 release lineFixed in 2.2.xThe issue has been fixed in 2.2 release lineIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releasebug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions