Got it :)
Again, Swaiba...Thank u so much
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.
Got it :)
Again, Swaiba...Thank u so much
you're welcome
Swaiba, need your (or anybody else )help again..
I'm trying to do this;
$fields->addFieldToTab("Root.MedRecords", $fields->insertBefore(new LiteralField('NameFieldGroup'.'Patella','<div class="NameFieldGroup">'),'HD');
$fields->addFieldToTab("Root.MedRecords", $fields->insertAfter(new LiteralField('NameFieldGroup'.'Patella','<div class="NameFieldGroup">'),'DNA');
My MedRecords are a different DataObject than the one i'm creating the Tab in. The 'Patella' , 'HD' and 'DNA' are fields in my MedRecords.
any ideas on this one ?
Hi Stefdv,
I think what you need is just:
$fields->addFieldToTab("Root.MedRecords", new LiteralField('NameFieldGroup'.'Patella','<div class="NameFieldGroup">'),'HD');
Which will insert the field before the 'HD' field under MedRecords tab.
Hope that helps,
Aram