2

Not sure if this is the answer without playing, but try saving the plain text field before adding it to the super table: // Create the super table field $superTable = new SuperTableField([ 'name' => 'supertablefield', 'handle' => 'supertablefield', 'groupId' => 1 ]); Craft::$app->getFields()->...


1

For grouping arrays, use Craft's group filter or index filter, then for joining the array items with commas use Twig's join filter. Something like this might be what you're looking for (I've also added eager loading for improved performance, and I used the map filter as a cleaner way of organising the array, though you could use a nested loop if you find it ...


1

I didn't test it yet but it should like this : {% set entries = craft.entries().section('schedules').all() %} {% for entry in entries %} {% for block in entry.stageSchedule : %} {% if block.type == 'yourblocktype' : %} {% for item in block.schedule %} {{ item.timeOn }} {% endfor %} {% endif %} {% endfor %} {% endfor %} ...


1

On the chance that anyone is having this same issue, here is what I needed to do to fix the issue (based on help provided by Craft's Support -- many thanks to them): The Super Table plugin was out of date. The admin panel didn't show the issue and a composer update didn't either. I had to manually update the composer.json file to reflect the current Super ...


1

The Super Table field value is a query, so the .all() needs to be called on the field itself (not on lightswitch). But looping over queries is in itself deprecated in Craft, so you should set it to a variable first, and then loop over that. In any case, the .all() will return all rows of your Super Table field, each of which contains your lightswitch field (...


1

In reply. In a tweet from Brandon... Neo will get a direct upgrade path to matrix. https://twitter.com/brandonkelly/status/1114144432243265536?s=19 That being said. I used supertable more recently.


Only top voted, non community-wiki answers of a minimum length are eligible