0

I have created layout with ui component form. But now I want to add tab in admin layout.

I already set layout="2columns-left" in layout but it's showing only my one ui compnent form.

<?xml version="1.0" ?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
 <update handle="editor"/>
 <body>
 <referenceContainer name="content">
 <uiComponent name="my_ui_form"/>
 </referenceContainer>
 <referenceContainer name="left">
 .....
 .....
 </referenceContainer>
 </body>
</page>

How to set 2columns left in Admin?

asked Mar 19, 2018 at 11:48

1 Answer 1

0

I found the solution.

we must use admin-2columns-left for admin layout

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
.....
..... 
</page>
answered Mar 20, 2018 at 13:20
1
  • but this won't do 2 columns in the form, only add 2 columns in the page that contain the form... Commented Apr 28, 2020 at 9:15

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.