Questions tagged [plugin-supertable]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
20 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. I can't figure out how to mix "slice" and "orderBy RAND" with filtering by that field. This shows me ...
1
vote
1answer
11 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 ...
1
vote
1answer
16 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 ...
0
votes
0answers
19 views

Is this to depth for a super table field?

I have a section with products. Then a section where you can create sets with the products. Means a super table field with the field quantity and a entries field. Example: Database Products: ...
1
vote
1answer
22 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() %} <...
1
vote
1answer
26 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:...
1
vote
1answer
20 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->...
0
votes
1answer
27 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";...
1
vote
1answer
72 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 ...
1
vote
1answer
24 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 ...
0
votes
1answer
18 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 ...
1
vote
1answer
45 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. ...
1
vote
1answer
61 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 ...
0
votes
0answers
26 views

How to save a Neo block content with Super table block content

I'm using Neo blocks as part of an import process and I'm struggling to figure out how to do this via PHP. The following code snippet (a standard approach of setting the field value with an array ...
1
vote
0answers
74 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 (...
2
votes
1answer
69 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! :)
1
vote
0answers
64 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 ...
1
vote
0answers
46 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 ...
1
vote
1answer
65 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. ...
1
vote
1answer
55 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 ...
1
vote
1answer
153 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 ...
0
votes
1answer
38 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"> ...
2
votes
1answer
48 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 ...
3
votes
1answer
63 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 }} ...
1
vote
1answer
299 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....
1
vote
1answer
269 views

query on Super Table field's date field

I have a section (events) with a Super Table field that has a date field. I am looking for a way to make a request to have the events superior to now. I cannot find how to do it. The event have ...
1
vote
1answer
166 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 [ ...
3
votes
1answer
122 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 ...
1
vote
1answer
144 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 (...
1
vote
0answers
336 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 ...
2
votes
1answer
479 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 ...
1
vote
1answer
60 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(), ...
0
votes
1answer
182 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?
1
vote
1answer
219 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(); $...
2
votes
2answers
435 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 ...
2
votes
0answers
85 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 ...
1
vote
1answer
113 views

Is defined conditional passing, yet causes a “do not have a method or closure named” error

Why is it that in the below, referencing stRow.caption causes an error despite being wrapped in an "if defined" check? The error is: Craft\SuperTable_BlockModel and its behaviors do not have a ...
1
vote
1answer
429 views

Output SuperTable fields from inside Matrix field

Having looked at other answers I'm pretty sure I've got this correct but it's still not working for me. I've stripped the code down to make it easier to read. Error i'm getting is "Impossible to ...
1
vote
1answer
165 views

Multilang Bug with Matrix, Neo, SuperTable (with Video)

We have a big problem with CraftCMS and Multilang. We have the default language German (DE) in Craft. We have news entries with matrix fields We create a new language English (EN) as second language ...
0
votes
1answer
58 views

Override SuperTable reverse related entries limit

I've got two kinds of channel entries: Bills and Legislators. Legislators have a SuperTable of votes. Each vote is related to one Bill. I want to get all the votes associated with a particular Bill ...
2
votes
1answer
216 views

Dynamic upload location for Super Table within a Matrix field?

I'm trying to set dynamic upload locations for my asset fields that are in a Super Table field within a Matrix field. So it's Matrix > Super Table > Asset field. I'm getting the following error when I ...
2
votes
1answer
223 views

Why is my Super Table field returning the ID for existing blocks?

I have a front-end profile form that is using a Super Table field to populate a user's phone number. If the user has not populated the field before, everything works great. I am able to use new1 to ...
2
votes
2answers
483 views

Sort entries by custom date in Matrix field / Super Table

I currently have numerous Super Tables with date fields inside and I am trying to get all table items to list themselves together in date order depending on what the user inputs. I have tried using ...
1
vote
1answer
241 views

Sorting SuperTable Field with SuperSort?

I'm trying to use supersort to sort my entries based on date values in a supertable field. This is what I have so far but it's not working. {% set artists = craft.entries.section('artists') %} {% ...
1
vote
1answer
359 views

How can I output the value of a superTable field within a loop?

I have a superTable field that I am trying to re-populate on my front-end form. Everything is working great, I am able to populate a drop-down, but can't seem to find the magic numbers to re-populate ...
2
votes
1answer
392 views

How can I loop through the values of a drop down within a SuperTable?

I a musing a front-end form to create an entry in the CP. In my form I am using a SuperTable that contains two fields/blocks. Size - [text input] Measurement - [dropdown] Here is what my template ...
2
votes
1answer
137 views

Remove duplicated entries from SuperTable related entries

Anyone able to assist me with removing duplicates in this example? So I have a related entries (cables) setup in a SuperTable. Some of these entries are duplicated across different rows. So a cable ...
1
vote
2answers
320 views

Outputting supertables within a matrix

after searching around for awhile I still cannot find a clear answer to templating Supertables within a matrix field. I have a field called 'about' which is the matrix field, within that there is a ...
1
vote
1answer
901 views

Looping through rows in a Super Table

Very new to Craft & Twig. So I get the following error: Impossible to invoke a method ("url") on a integer variable ("0") with the below code: {% if module.type == "rotator" %} <div class="...
1
vote
1answer
694 views

How to use Super Table to create an Image Carousel?

I'm very new to Craft and am having some trouble creating an image carousel from a Super Table. I created a Matrix field called 'rotator' it has one field called 'rotatorContents' which is a Super ...