Questions tagged [table]
The table tag has no usage guidance.
27
questions
1
vote
1
answer
19
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 ...
1
vote
1
answer
33
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 ...
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 ...
1
vote
1
answer
244
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 ...
1
vote
0
answers
61
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 ...
0
votes
0
answers
361
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
1
answer
63
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
1
answer
348
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
1
answer
95
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
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 ...
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 ...
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 ...
2
votes
1
answer
792
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
2
answers
788
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
0
answers
199
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
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 ...
0
votes
1
answer
287
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
1
answer
109
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
0
answers
167
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
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 ...
1
vote
1
answer
532
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
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?
3
votes
2
answers
372
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
1
answer
429
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
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 ...
1
vote
3
answers
250
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
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....