Hey !
Just wanted to know if it’s possible to customize subpanel display in the module.
I have a module A with X tabs and a module B with one tab. I’d like to put the B module tab after an A module tab (for example after the second tab ).
If yes how can i do that ?
I believe this thread is related:
In the metadata/subpaneldefs.php you have an array with the subpanel definitions. This array has a ‘order’ that you can check and change to the desired order…
You can change this in a custom file ( custom/modules/<desired_module>/metadata/subpaneldefs.php or via the Extension framework: drop a file in custom/Extension/modules/<desired_module>/Ext/Layoutdefs/ with some content like:
$layout_defs[<desired_module>]['subpanel_setup'][<subpanel_name>]['order'] = <some_number>
Then, do a QR&R and y…
Thanks,
BrozTechnologies
It doesn"t work for me but hanks
@Seijitsu
Can you do image as an example?
Hey !
I’d like to TUTUT after TATA
@Seijitsu
I’m sure @BrozTechnologies wrote the correct recommendation. Maybe your problem lies elsewhere.
Even if tutut is not the same module as TATA, TITI, TOTO ?
I changed the order value in custom folder and it’s still at the same position
@Seijitsu
May be you didn’t do “Quick Repair and Rebuild”?
Yes I did it
Something weird when I Print the array Layout def before loading it’s empty…
@Seijitsu
Show your file custom/modules/<desired_module>/metadata/subpaneldefs.php
and path to it.
<?php
$layout_defs["tata_toto"]["subpanel_setup"]['tata_toto_tut_tutu']['order'] = 0;
I created the file with that line
@Seijitsu
and path to it.
custom/modules/tata_toto/metadata/subpaneldefs.php
The file is readed but the order not working with an empty layout_defs before setting order option
@Seijitsu
You have parent module tata_toto and children modules with labels: TATA, TITI, TUTUT, TOTO. Which does label have module name: “tata_toto_tut_tutu”?
the panels tata, titi, toto are in tata_toto, the panel tutut is in the tut_tutu module. I’d like to put the panel tutu after tata that is in the module tata_toto and i’m not sure that is possible…
tata_toto has a relation with tut_tutu to print this module in tata_toto.
we can rename module_a & module_b if it’s easier
@SeijitsuI
I see problem with naming of modules. You write about different names: tut_tutu, tata_toto and module_a, module_b.
The image is an example. The panels of example is in the file custom/modules/Accounts/metadata/subpaneldefs.php .
Ok what I’m trying to do. Is to put document After more information parent module
@Seijitsu
Possible but I wrote:
I don’t have enough information about naming your modules. Look at image and write namings.
So, If I want to change documents i have to write
$layout_defs[“documents”][“subpanel_setup”][‘default’][‘order’] = 0; based in your image ?