Questions tagged [plugin-supertable]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
21 views

trying to insert super table field values using graphql in craft cms

cant able to store values from super table field,need a correct format to do Graphql mutation saveEntry($superTable: [demoSuperTable_SuperTableBlockContainerInput] = {demoSuperTable_0: {id: "&...
user avatar
1 vote
1 answer
52 views

Need to run the super table fix-content-tables from CLI

We have an issue where the super-table fix-content-tables needs to be run. This fixes the issue on local and development environments. The problem is we have a very restricted production environment ...
user avatar
1 vote
1 answer
66 views

What does "Allow self relations" on Asset fields mean?

In the Advanced section of an Asset Field configuration, there is the "Allow self relations" checkbox. What does this do? I've noticed that when I have the Propagation Method of the field ...
user avatar
  • 155
1 vote
1 answer
37 views

Sort Repeater fields alphabetically

I have a supertable with over 79 repeater fields. Is there a way I can sort these fields in the frontend alphabetically? For example I have: Romania Germany Austria ... On the frontend I would like ...
user avatar
  • 149
1 vote
1 answer
69 views

How to exclude Super Table rows matching given entry

I can't quite figure out how to make this work: Say I have two sections, Actors and Movies. In my Actor section, I've got a Super Table field (myFilmography) with an Entries column to choose a single ...
user avatar
  • 43
1 vote
2 answers
43 views

Supertable bilingual (multi-site)

I want to save a supertable with different infos on two different siteId of an entry. It works fine with all the other fields i'm using: the value is saved separately to each different language. But ...
user avatar
2 votes
1 answer
20 views

Search Filters Results Unexpectedly

This question is related to: SuperTable Returning Unexpected Results w/ Template, which is still unresolved. In essence, Im trying to return the results of a Supertable at two different points in my ...
user avatar
2 votes
2 answers
129 views

Editing SuperTable inside Matrix block

I have a matrix field set up as global (strategies). Inside each matrix block there is a SuperTable (pairs) On each row in the SuperTable there is a lightswitch (active) I need to toggle the ...
user avatar
1 vote
1 answer
192 views

SuperTable queries on fields in fields

I have Event entries which contain (among other things) a SuperTable holding the schedule for that event. Each row of the SuperTable contains (among other things) a field for a Session entry, in a ...
user avatar
1 vote
1 answer
241 views

Grouping Super Table Results via Twig Multidimensional Array

I'm trying to loop through a Super Table array and group results based on a category ('contribution'). I've gotten pretty far but I'm struggling creating an array in Twig that gives me what I need (I ...
user avatar
1 vote
1 answer
193 views

how to create Super Table field programmatically

i am trying to create a super table field programmatically. this is the code i tried. i see super table field in field list but i can see fields inside of super table. how can i do this? //...
user avatar
  • 467
1 vote
1 answer
66 views

Pull info from a Related field within Matrix > within Super Table

Ok, my mind is about to implode with this… any help on template syntax very welcome! I have 2 Sections: ‘artists’ and ‘schedules’ In the ‘schedules’ section I have a Matrix field called ‘...
user avatar
  • 1,173
1 vote
1 answer
237 views

Craft Migration fails (SuperTable propagationMethod)

I'm trying to upgrade Craft from 3.3.1.1 and I'm getting an error. I am updating via Composer and get the following error when I run the migration script after upgrading: Unknown Property: Setting ...
user avatar
1 vote
1 answer
218 views

Check for value in supertable

Is it possible to check for a value in a supertable field during the for loop: {% for item in craft.products.supertable.lightswitch(1).all() %} {# stuff #} {% endfor %} This returns Impossible ...
user avatar
  • 3,664
1 vote
1 answer
262 views

Supertable or Neo for nested Matrices and compatibility with Craft 4

I typically avoid using Supertable or Neo because I don't want the extra dependency going forward. However I'm in a project where I needed nested matrices. I know that in C4 nested matrices will be ...
user avatar
  • 1,907
1 vote
0 answers
67 views

Search if Super Table Field Has Rows

I have a section with a super table field, and I only want to display entries in that section if the super table field has rows (so basically a "not empty" search). How do I do this? I tried using the ...
user avatar
  • 1,075
1 vote
1 answer
117 views

Show 2 random entries based on checkbox in Super Table

I have a Super Table field (entryType) with a checkbox field "featuredIn" and some values. This is how it looks when creating a entry: I can't figure out how to mix "slice" and "orderBy RAND" with ...
user avatar
2 votes
1 answer
176 views

Programatically add lines to a Super Table field

I am trying to add new lines into a SuperTable field of an entry from my plugin. Following the Developper sample, I am able to change set lines to this SuperTable field. But it is replacing the ...
user avatar
  • 31
1 vote
1 answer
402 views

Looping Entries in Super Table, display row details

I have a Super Tables field, containing related entries: I'd like to display the field name (ie 'English Links') in a template, but can't figure out how, the following outputs a string of values and ...
user avatar
  • 111
1 vote
1 answer
138 views

Multiple Images/Assets from Super Table?

I have a Super Table "previewImage" with a field "previewImageFile". This does not work: <ul class="col-lg-12"> {% for subsection in entry.descendants.descendantDist(1).all() %} <...
user avatar
1 vote
1 answer
158 views

Saving a SuperTable field within a Matrix Field

I am trying to save a SuperTable field that sits within a Matrix field. I have followed the docs as far as I can but for some reason the SuperTable data is not getting saved. My steps are as follows:...
user avatar
  • 103
1 vote
1 answer
69 views

Module Development - Get ID of a field within a Matrix field

I have a matrix field that has a Supertable matrix within it. I need to programatically get the ID of the field that is nested in the Matrix. I have the code below: $matrixField = Craft::$app->...
user avatar
  • 103
0 votes
1 answer
360 views

Assets in Super Table not working

I have a assets field in a Super Table. But the output from the image i selected in the Entry is just garbage: O:28:"craft\elements\db\AssetQuery":82:{s:8:"volumeId";N;s:8:"folderId";N;s:8:"filename";...
user avatar
1 vote
1 answer
95 views

How to place assets in plain text fields?

In ExpressionEngine i had a matrix field for images (assets) that i used in my entries. I was using NSM Transplant and in my entries i could use {bild-1}, {bild-2} and so on wherever i wanted a image ...
user avatar
2 votes
1 answer
569 views

How to find the block type of Super Table field that is inside a Matrix field

I'm making a front-end entry form with a Super Table field that is inside a Matrix field. Super Table docs at https://verbb.io/craft-plugins/super-table/docs/template-guides/front-end-form have an ...
user avatar
  • 393
0 votes
1 answer
48 views

Allow Author to Build Multiple Choice Question?

I'd like to allow authors to add a multiple choice question to an entry. To build the possible answers, they will create answers and mark one as the correct answer. I could then output these as ...
user avatar
  • 176
1 vote
1 answer
263 views

How to tell whether a SuperTable column has data or is empty?

I have a "contact table" SuperTable with columns for Name, Phone, Email, and Website. In the template, I'm displaying the data as a table. I only want to generate table columns if a column has data. ...
user avatar
1 vote
1 answer
274 views

Front End Dropdown Field from Super Table

I have a single static Super Table Field with some Dropdown Fields. Is it possible to loop through the values instead of hardcoding each one? My hardcoded version works without problems but i think a ...
user avatar
  • 53
1 vote
0 answers
203 views

Querying a supertable field

I have an entry type called people which has a superTable field called programmeAffiliations, with three fields, jobTitle, researchProgramme, primary where: researchProgramme is a category field (...
user avatar
  • 111
2 votes
1 answer
197 views

How to remove a Super Table row on the front end?

Is it possible to remove a Super Table row? I got it to work to add a new row but it would be great if I can remove it later. Thanks for any help! :)
user avatar
  • 61
2 votes
0 answers
295 views

Advanced queries with Super Table

I have three channels: Events, stages and artists. An artist is added to a timetable super table field in the stage channel. In the event, I have a stages field where I select stages. Events also ...
user avatar
1 vote
0 answers
281 views

Query on Super Table field's entry field

I have a section with a Super Table field that has an entry field. Now I want to find the entries that have a relation to that entry. I found this answer here. This but I can not get it to work with ...
user avatar
1 vote
1 answer
369 views

Looping Related Entries with a Super Table

I need to loop related entries. I am using a SuperTable field with the handle "related" with an entry field with the handle "contentEntry" and two text fields for alternative text and descriptions. ...
user avatar
  • 1,107
1 vote
1 answer
253 views

Iterate through Super Table field in plugin

I have a Super Table field with two columns, one is a category field, the other an assets field (limit 1 on both). How can I iterate through it to get the category and asset selected for each row in ...
user avatar
1 vote
1 answer
390 views

Super Table -> Matrix data loss

I updated to the newest Craft Version 3.1.1. Since then I have the following problem. I lost all the data from Matrix Filed stored in a Super Table Field after changing Field Setup (Matrix - Asset ...
user avatar
  • 81
0 votes
1 answer
166 views

For loop through custom field in JavaScript

I'm using a script to animate four sets of numbers on a page. I would like the numbers to be editable from within the admin (a SuperTable field). Currently I have this: <ul class="counters"> ...
user avatar
  • 1,173
2 votes
1 answer
76 views

Craft CMS 3 data structure advice for vehicle make, model, trim, year tagging

Hi i really would like some advise on best practices on setting up some data for my Craft APP. Most of my documents will be linked to vehicle make/model/trim/year. EG Audi A5 Sport 2009-2016 and/Or ...
user avatar
  • 23
3 votes
1 answer
169 views

How to get a Super Table relation in PHP?

The following code works great in a template. {% set priceProduct = currentUser.priceTable.relatedTo({ targetElement: product.id, field: 'product' }).one() %} {{ priceProduct.price }} ...
user avatar
1 vote
1 answer
514 views

Bootstrap 4 Accordion with Matrix (and SuperTable)

I'm attempting to use a combination of SuperTable and Craft's Matrix to create a reusable Bootstrap 4 Accordion element, but I'm hitting a wall. My code so far: {% for row in entry.contentBuilder....
user avatar
1 vote
2 answers
760 views

Entries query by Super Table field

I have a section with a Super Table field, each "row" of which contains a date field. I am looking for a way to query for entries where one of the rows contains a future date.
user avatar
1 vote
1 answer
454 views

How to save a Matrix with Super Table in it

I have an entry with a Matrix field, inside this field I have a Super Table as block type. My fields data looks like below: "title" => "test1" "matrixHandle" => array:2 [ 0 => array:2 [ ...
user avatar
  • 387
3 votes
1 answer
373 views

Set SuperTableFields programatically

I'm trying to setup some Global fields in a migration. I'm using the SuperTable Field from verbb which is similar to a matrix field. I'd like to add several rows during migration but can't seem to ...
user avatar
2 votes
1 answer
429 views

Craft 3 CP performance

I'm wondering what kind of performance I should expect from Craft 3's Control Panel. I've created a (clever) structure, where I have matrix field which contains a superTable field. Matrix Row (...
user avatar
  • 111
1 vote
0 answers
637 views

Finding Super Table field in matrix field

I am writing an importer that pulls from a separate MySQL database into Craft 3, and for the most part it's been quite simple to do. However, I set myself up for some complication by having a Super ...
user avatar
2 votes
1 answer
964 views

Using Element API to output Super Table fields

I am building a feed using Element API. I am currently looping through Matrix blocks to get various data (based on the help from this post). One of the matrix blocks contains a Super Table field, with ...
user avatar
1 vote
1 answer
138 views

Get the variables of a loop from an include file

So my 1. file is "_overview-topicTeaser.twig" which is within a matrix: {% include 'modules/module-squareteaser/_module-squareteaser' with { squareTeasers: block.topicTeaserItems.all(), ...
user avatar
0 votes
1 answer
686 views

Matrix Field Count Records

Is there an easy way to return the total number of entries in a Super Table within a Matrix field?
user avatar
  • 373
1 vote
1 answer
531 views

SuperTable Field returning null

I am performing a query from within a plugin like so: $criteria = craft()->elements->getCriteria(ElementType::Entry); $criteria->section = $journeyTitle; $response = $criteria->find(); $...
user avatar
2 votes
2 answers
1k views

Adding Columns to a table

Is there a way or a plugin that allows you to add columns and change columns heading from within the entry? Instead of defining column heading while creating the table field. It would be nice to have ...
user avatar
  • 147
3 votes
0 answers
166 views

How to import LinkIt (custom) fieldtype with Feed Me into Super Table

I'm trying to import a LinkIt fieldtype into a Super Table with the Feed Me plugin. I've tried several ways but doesn't seem to be working. The part in my json which gets mapped to the Super Table ...
user avatar