17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1381 Views |
-
Self spawning fields

20 November 2007 at 10:09pm
Hello again. I was wondering if it was possible to create a set of admin fields that would self spawn?
For instance I would like to create a page that contains a list of items, each page might contain a variable amount of items. I would like a fieldset that starts off with one text field and a button to add more depending on how many items were required on the page.
I anticipate that the answer is no, but I figure it wouldn't hurt to ask.
-
Re: Self spawning fields

25 November 2007 at 12:27pm
Sure, why not - there's a field called TableField that allows you to add multiple records (or rows of a table) inside a single TableField.
This is a similar field to the one that manages the member table in the Security section of the CMS, as well as the one in the Files & Images.
http://doc.silverstripe.com/doku.php?id=tablefield
There's also ComplexTableField for more advanced tabular data management. They're documented in the SilverStripe wiki, as linked above.
Hope this helps,
Sean
| 1381 Views | ||
|
Page:
1
|
Go to Top |


