Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Self spawning fields

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1523 Views
  • mmilo
    Community Member
    9 Posts

    Self spawning fields Link to this post

    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.

  • Sean
    Forum Moderator
    921 Posts

    Re: Self spawning fields Link to this post

    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,


Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.