Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

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

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

Adding list of unknown length


Reply

2 Posts   1106 Views

Avatar
UncleCheese

25 October 2007 at 10:18am (Last edited: 25 October 2007 10:18am), 4085 Posts

My attorneys page also needs a list of all the schools each attorney went to. One way to accomplish this would be to give the user a WYSIWYG editor and have him make a bulleted list, but I'd much rather use some kind of dynamic set of text fields where the user could just click "add" and get another textbox until finished.

Is this a possibility? Or am I dreaming, here?

Avatar
Sean

25 October 2007 at 4:15pm Forum Moderator, 921 Posts

Hi there,

You can achieve this by using a TableField, have a look at the following pages for some information:

Here: http://doc.silverstripe.com/doku.php?id=tablefield

TableField is a subclass of TableListField, so you can see documentation on that too, here:
http://doc.silverstripe.com/doku.php?id=tablelistfield

Cheers,
Sean