Bruno17 / MIGX

MIGX for revo 2.2 and above
83 stars 78 forks source link

Hide unnecessary FormTabs #336

Open Skippidar opened 5 years ago

Skippidar commented 5 years ago

I have 10+ FormTabs in my MIGX configuration. But i need only 2 of them at once, because I have 1 tab above with select field named "block-type". Depending on it's value i need to fill another formtab. For example, if i select "list" type, then i need to fill FormTab named "List" and leave others empty. So, the question is - is it possible to hide other tabs when editing\creating item and show only tab which is selected in "block-type"?

Bruno17 commented 5 years ago

this is a usecase for the multiple-formtabs feature see for example: https://docs.modx.com/extras/revo/migx/migx.tutorials/migx.varying-layout-boxes/migx.varying-layout-boxes.configurator-version

Skippidar commented 5 years ago

And what if I would like to have 1 common FormTab? Now, if I have 1 FormTab in general config it doesn't display if I choose FormTab config, so I have to copy this FormTab to all configs.