Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [table]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
22 views

Feed me - Trouble importing table and matrix with translation

I'm trying to import entries to a chanell using Feed me but having some issues with table and with some multilingual texte in a matrix field. Craft edition & version Craft Pro 3.3.2 Feed Me 4....
0
votes
0answers
35 views

Set field value of table field within matrix in a module?

I have a matrix called 'Election' with the structure: Block: role - Text field: roleName - Table field: candidates -- Text field: fullName -- Number field: votes My module can edit the roleName ...
0
votes
1answer
21 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
47 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
25 views

Access table from Globals in script

In the Globals I have a field which is of type table. I was trying to access this table in the javascript in order to get the values of particular rows. <script> var myTable = "{{ ...
0
votes
0answers
50 views

How do I create an index page that loop through the table fields of its entries?

Every entry in a section has a table. The table depicts sales over 7 years. I want to create an index page that lists the title of each entry and the sales for each entry in the section. I know ...
1
vote
1answer
339 views

how to create a new table in database

I followed the document to create a migration, add a schema version, install migration and add schema codes into Install.php. Last I run the migrate up command, but no table is created. Anyone could ...
2
votes
2answers
477 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
1answer
438 views

Is there a better way to make tables in Craft?

I'm using the table function built into Redactor, and all my tables are coming out with the minimum width possible, without any padding between columns. How do I modify how Redactor builds its tables?
1
vote
2answers
334 views

Loop by column from a table

How can I loop from col2 to col4 ? Or loop by column heading handle? Remplace {{ row.col2 }} <ul class="features small-font-size"> {% for row in block.tableHandle %} <li data-...
1
vote
0answers
146 views

CSV/JSON data imported to dynamic table

I'm looking for a solution that will allow me to turn a CSV or JSON data file into a table on the front-end of a website. Ideally the data would be imported into the database and then output into a ...
1
vote
1answer
50 views

Conditionals and outputting tables

Need a hand on a conditional to see if my table has any data, and if it does, output the table. The second thing I need help is the code to output the table. When I look at tutorials, they always ...
0
votes
1answer
169 views

Redactor settings: stripping out classes from table

I have a site (Craft 2.5.2754) and am trying to add a class to a table within Redactor. Even if I disable Clean up HTML and Purify HTML (which would rather not do) the style is getting stripped out on ...
1
vote
1answer
77 views

Multiple editableTable in a CP page

Is it already built-in in CraftCMS to make multiple editableTable in a CP page? The behaviour would be similar to Matrix field where you add a matrix block, the matrix block appears. What I want is ...
1
vote
0answers
123 views

Table attributes not customisable for nested entry sources [closed]

Using a plugin, I have added some nested entry sources to some of the default section entry sources in my site. For example: 'section:6' => [ 'label' => 'News', ... 'nested' => [...
2
votes
1answer
669 views

Redactor advanced table formatting?

We have a client who has quite complex tabular data they need to add to their site. Hitherto they have been preparing these in Excel then pasting in but we are hitting issues with the way Redactor ...
1
vote
1answer
349 views

How to make a sortable table in frontend?

I need to display a sortable table of organization member records in frontend, preferably with pagination. Before I start coding this from scratch, I want to ask: Does anyone have some ideas on how to ...
0
votes
1answer
73 views

How to reverse the rows in a table?

I could do with flipping the rows in a table, within a template. Is that possible?
3
votes
2answers
348 views

Importing tables and Tablepress like plugin functionality

Is there a plugin or something equivalent to Tablepress (WordPress) for Craft? I have some large Excel table containing product pricings amongst other things, that I would like to import into Craft ...
0
votes
1answer
248 views

Pull in images to table rows using craft.assets wilst looping through a table field

Thanks in advance to anyone who can help me :) I have a table field in Craft that my template is pulling in data from... the issue is that in the box at the start of each row I want a different image....
2
votes
2answers
2k views

Templating SuperTable

I'm using the SuperTable plugin to create Matrix fields inside a super Table. It's looking great in the front-end but I can't find any documentation on how to template the fields. This is my code so ...
1
vote
3answers
231 views

Opening and closing table within a switch

Within my matrix I have two blocks: Day and Event. Day is just a date field while the event block has two text fields. What's the best way to wrap the event data, which needs to show up as a table ...
1
vote
1answer
1k views

How do I get the column headers of a table in a matrix?

I'm trying to write a general purpose matrix template and I've come up on a little snag with tables fields. I see no way to get the column header values. The answer here mentions craft.fields....