5102 Posts in 1520 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 795 Views |
-
Admin field seperation

2 September 2009 at 2:41am
I have a tab in the admin panel (extended on the Page class) called "Misc". I want to add to it 6 new fields but I need the to be visually divided.
For example...
Field1
Field2
<hr/>
Field3
Field4
<hr/>
Field5
Field6It can be as simple as a horizontal rule or if possible, something a bit nicer (maybe a box with a heading (but not another tab)).
Thanks
-
Re: Admin field seperation

2 September 2009 at 1:05pm Last edited: 2 September 2009 1:07pm
Check this link
http://doc.silverstripe.org/doku.php?id=form-field-types#structureand
http://doc.silverstripe.org/doku.php?id=form-field-types#dataless_utility
You should be able to group your fields with
new FieldSet (
new FieldGroup(
new HeaderField("this is my header", 2),
put your fields here
),
new FieldGroup(
put your fields here
)
);
| 795 Views | ||
|
Page:
1
|
Go to Top |


