Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [table]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
38 views

Use table prefix after installation

I finally have been able to install Craft CMS. During installation I left the table prefix field empty. I assume that for each site separate tables are created. Therefore, it would be more user-...
flip's user avatar
  • 149
1 vote
1 answer
24 views

Why is my redactor table converted to a text when saving?

I added the table plugin to my Redactor field. In the redactor field I can now include a table (see image below). Upon saving the Redactor field, the table content is converted into text and put ...
Droemmelbert's user avatar
1 vote
1 answer
37 views

Table Field fixed column content(placeholder) for all entries

I have a table field with 3 columns, one of them is 'Weekday', Type = single line text. how can I set a placeholder to the weekday column ( Monday, Tuesday,....) in the Control Panel. right now I have ...
Ra3d K's user avatar
  • 125
0 votes
0 answers
62 views

Can I get a row from a table without looping trough the whole table?

I wanted to use a table to add global glosery, for translation purposes. (The page is in Norwegian, but need to be understandable for the whole team.) Also it should be accessable for copywriter to ...
Wobee's user avatar
  • 328
1 vote
1 answer
284 views

Cannot hide redactor strikethrough button when table plugin is enabled

I am trying to set a Redactor field so that it only shows the table button, though no matter what I do... the strikethrough button appears, it looks like the correct name is strike though doesn't ...
joep's user avatar
  • 610
1 vote
0 answers
64 views

Craft Table/Tabular static entry input field

Is there a way to set up a Craft CMS entry field to have a table with predefined rows and columns? I have tried with the native Craft Table field, but it allows users to add rows or edit default ...
Allan Kukral's user avatar
0 votes
0 answers
373 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....
Thibault Jadoul's user avatar
0 votes
1 answer
64 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 ...
userAW's user avatar
  • 176
1 vote
1 answer
369 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. ...
Katie Fritz's user avatar
1 vote
1 answer
101 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 = "{{ ...
Justyna Zygmunt's user avatar
0 votes
0 answers
123 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 ...
Hellyar's user avatar
  • 921
1 vote
1 answer
1k 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 ...
yu xia's user avatar
  • 397
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 ...
user6999's user avatar
  • 157
2 votes
1 answer
809 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?
kingkelly's user avatar
  • 337
1 vote
2 answers
813 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-...
NovoWeb's user avatar
  • 11
1 vote
0 answers
200 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 ...
John Johnson's user avatar
1 vote
1 answer
65 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 ...
DevServe's user avatar
  • 303
0 votes
1 answer
302 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 ...
Cole Henley's user avatar
  • 1,741
1 vote
1 answer
122 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 ...
Anya Dit's user avatar
  • 356
1 vote
0 answers
168 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' => [...
Tim Everts's user avatar
2 votes
1 answer
1k 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 ...
Cole Henley's user avatar
  • 1,741
1 vote
1 answer
543 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 ...
CodeMonkey's user avatar
0 votes
1 answer
91 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?
Clive Portman's user avatar
3 votes
2 answers
375 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 ...
silverdrive's user avatar
0 votes
1 answer
472 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....
Steve's user avatar
  • 93
2 votes
2 answers
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 ...
steve1938's user avatar
  • 105
1 vote
3 answers
251 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 ...
Adam McCombs's user avatar
  • 1,695
1 vote
1 answer
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....
Bill Criswell's user avatar