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
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
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
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->removeByName('TabNameHere');
return $fields;
}
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 ...
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...
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