5102 Posts in 1520 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 418 Views |
-
to much tabs :-)

18 May 2011 at 11:49pm
hi,
I have to much tabs at a DataObject in the backend, see attached image ...
How would you solve this? Just change some CSS or replace it with a dropdown (if so how)?thx
-
Re: to much tabs :-)

18 May 2011 at 11:55pm Last edited: 19 May 2011 12:01am
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->removeByName('TabNameHere');
return $fields;
} -
Re: to much tabs :-)

19 May 2011 at 12:30am
hi swaiba,
I kown how to remove them
I need all this tabs, I placed them there ...What i want to ask is, how others do if they have so much tabs and one row is not enough ...
-
Re: to much tabs :-)

19 May 2011 at 12:36am
Ahhhh, my bad...
I am assuming this is a ModelAdmin EditForm... right?
if they are HasMany or ManyMany ComplexTableFields (scaffolded) then the option is to move them into something like a CheckBoxfieldSet but this means you can no longer get all of the functionality - just selection of the relevant items.other than that - you can write a lot of custom code to add the fields to different tabs and handle the saving of the data to the different (related) objects.
or... maybe someone does have a better idea - as always interested to hear it...
-
Re: to much tabs :-)

19 May 2011 at 12:44am
yes ModelAdmin ... the most of the tabs handle only 1 object, I tried to share the fields of the object in logical parts ...
I try to reduce the tabs and merge some forms together ... but I'm also interessted in an easy solution.
*searching for the font-size of the tabs, but dont find it in the css files* :O)
thx
| 418 Views | ||
|
Page:
1
|
Go to Top |


