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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Resolve has_many in TableListField


Go to End


2 Posts   1456 Views

Avatar
zenmonkey

Community Member, 545 Posts

30 March 2011 at 3:55am

I'm trying to build an online product order form from a dataobject with a has Many Relation. I've tried building a a tablelist field withy the child dataobject but the form gets unruly as it 1200 items and each has images. Since the images are really tied to the parent object I'd like a TableListField with child dataobject as a nested table list. I'd use the complextabllefield but I don't want to be abale to edit child objects just display them

Avatar
Devlin

Community Member, 344 Posts

30 March 2011 at 8:53am

HasManyComplexTableField's $template is public, so what about editing $this->template and get rid of everything you don't want.