0

Is it possible to remove this tag which was declared in another extension?

<referenceContainer name="content">
    <uiComponent name="library_authors_list"/>
</referenceContainer>

I tried using remove="true" but it didn't work.

3
  • I think it's better to override its layout file from there you can remove it
    – fmsthird
    Commented Apr 1, 2019 at 1:58
  • How do I remove it though? I tried simply deleting the <uiCompontent> tag in my new file but it didn't work.
    – Y. Cai
    Commented Apr 2, 2019 at 2:10
  • did you run static view files deployment ?
    – fmsthird
    Commented Apr 2, 2019 at 2:51

1 Answer 1

1

Basically you can do like block layout remove

Try this in your layout.xml

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
    <referenceBlock name="YourExactlyUiComponentName" remove="true" />
</body>

In your scenario name is library_authors_list

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.