2

First of all, I'm starting in Craft in general so I'm having a hard time with things that might be basic.

I want to create a editable table with a Element Select in a column. Like:

enter image description here

I already have the possibility to add custom fields, but I don't now how to set up the template.

{{ forms.editableTable({
    id: 'timetable',
    name: 'timetable',
    required: false,
    cols: {
        name: {
            heading: "Name" |t,
            type: "select" |t,
            options: {
                'area-x' : 'Area X',
                'area-y' : 'Area Y',
                'area-z' : 'Area Z',
            }
        },
        artists: {
            heading: "Artists" |t,
            type: "elementSelect" |t,
        }
    },
    rows: ///
}) }}

But of course that doesn't work.

Can anyone light up the way?

  • 1
    Doesn't answer your question, but have you seen github.com/engram-design/SuperTable? – Brad Bell Mar 22 '17 at 18:24
  • Actually it does! Yesterday I got into the Craft Slack group, and someone suggested Super Table. And it was the answer to my prayers! Thanks! – Jorge Anzola Mar 23 '17 at 9:16
  • Would you mind adding that as an official answer, Jorge? – Brad Bell Mar 23 '17 at 22:05
2

For my specific case, Super Table was the answer.

You can also check Neo

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.