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   1120 Views

Avatar
UncleCheese

Forum Moderator, 4094 Posts

25 October 2007 at 10:18am

Edited: 25/10/2007 10:18am

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

Forum Moderator, 922 Posts

25 October 2007 at 4:15pm

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