17452 Posts in 4473 Topics by 1971 members
|Go to End|
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.
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.
There's also ComplexTableField for more advanced tabular data management. They're documented in the SilverStripe wiki, as linked above.
Hope this helps,
|Go to Top|