Skip to main content

Questions tagged [matrix]

Matrix fields allow you to create multiple blocks of content within a single field.

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

5.x - Matrix Frontend Form Submissions

Has anyone found a way to create matrix field submissions with a frontend form? The docs for 5.x mention this section hasn't been updated and that the functionality has changed drastically. Craft 5.x -...
Jared Budlong's user avatar
1 vote
1 answer
22 views

relatedTo craft 5 nested matrix entires

Im trying to query a list of matrix entries that have a related field but it doesn't work after updating to craft 5. Note that 'category' is not category field type, its a regular structured entry ...
Tibbe's user avatar
  • 131
1 vote
1 answer
26 views

Group matrix blocks by date

I'm trying to group events in a matrix field by day. Each date has a title and start and end time. I would like events for today, tomorrow and any dates beyond grouped separately. This is what I have ...
univers0's user avatar
0 votes
0 answers
18 views

Filter GraphQL Response Based on Matrix Entry Type

In Craft 5, we now have a few Entry types with Matrix fields that can nest several other Entry types, or none. I'm struggling to work out a way to limit the returned results based on the content of ...
theAdhocracy's user avatar
1 vote
1 answer
30 views

How to get all Matrix block fields in a templated table of all fields

I want to produce a templated table of all fields, including Matrix block fields which belong to their parent Matrix field. I've been scratching around the Craft 4 class reference and getting nowhere. ...
Jonathan Schofield's user avatar
1 vote
1 answer
88 views

Craft 5 Matrix Field have URL?

I have a staff Structure Section with the intro page (Level 1) and individual staff members at (Level 2) as each staff member has their own page /staff/joe-bloggs. I was wondering if it's possible to ...
Martin's user avatar
  • 21
0 votes
0 answers
8 views

How can I list all entries that have a populated Freeform Form field?

The Freeform Form field can either be a direct custom field of the entry, or it may be inside a Matrix field's blocks or be a Super Table field. Ideally, I'd like to do this performantly, and either ...
Sandwich's user avatar
  • 636
0 votes
0 answers
15 views

Order Matrix Block in Control Panel by Date Field

Is it possible for the individual entries within a matrix field in the Control Panel to appear in the order of a date field? I have found here information on how the entries are sorted after saving ...
buckdanny's user avatar
  • 207
1 vote
1 answer
29 views

Matrix: Show Date Field in Card View

I would like to know if it is possible to display a custom date field in the card view of matrix field. Unfortunately, it is not possible to use a date field as a title or part of a title. it gives: ...
buckdanny's user avatar
  • 207
1 vote
1 answer
26 views

Select existing entries for a matrix-type field rather than creating new ones per entry

I have created different pages as entries. On each page I show a list of benefits of my company which are generally the same for each page but I would like to be able to customize the benefits for ...
flip's user avatar
  • 149
2 votes
1 answer
74 views

Craft CMS 5: Can I query entries and matrix-fields together?

If matrix fields become entries in Craft 5, is the following scenario possible, robust and efficient? Channel "speakers" Channel "solo events": with an entryfield for selecting ...
buckdanny's user avatar
  • 207
1 vote
1 answer
27 views

Replace the value of a table cell (inside a Matrix field)

I have a Matrix field, and blocks have a Table field inside of them, with two columns: event and category. I want to now set anything with category 'A' to category 'B' via a module (listening to Entry:...
supazu's user avatar
  • 526
1 vote
1 answer
53 views

Create section 'landing page' with 'two column block'

I'm very new to Craft 4. I have a matrix 'Landing Page Blocks' I've created 2 Block Types: Hero Block and Two Column Block Within the 2 column Block I need a left and right content block Within the ...
user3086053's user avatar
0 votes
0 answers
49 views

Changing Matrix Field Propagation Settings

I built a Craft multisite a few years ago. Most of the site pages feature a content builder matrix field with multiple blocks. Many sections are shared across sites. When I built the site, it seemed ...
JDub25718's user avatar
1 vote
1 answer
29 views

I want to pull content from a field on an entry into a matrix block that is displayed on that entry, is this possible?

I want to pull content from a field on an entry into a matrix block that is displayed on that entry. I have entries that are shared between multiple sites. I'd like to be able to add a field on these ...
Sean G's user avatar
  • 11
1 vote
1 answer
56 views

Output matrix field content into a RSS feed

I'm trying to create RSS feed for a site news section, most of it is straight forward to do but I run into an issue with the description section. That content is a sub field in a matrix field along ...
bhackett's user avatar
  • 147
1 vote
1 answer
30 views

Entry form replacing rather than appending data to a matrix field

I have this in my entry form: {{ csrfInput() }} {{ actionInput('entries/save-entry') }} {{ hiddenInput('entryId', entry.id) }} {{ hiddenInput('fields[questions][...
Tyssen's user avatar
  • 653
1 vote
1 answer
65 views

craft.matrixBlocks - related to entry

I've got classes by entry and each week is a matrix block inside that week. I'm then outputting all weeks together using this query {% set startDate = date(now)|atom %} {% set classes = craft....
CreateSean's user avatar
  • 1,983
1 vote
1 answer
38 views

Can not-related block types share a matrix field

I am aware that block types that are related should have a matrix shared. For example, to implement a slider, there should be image and caption block types inside a slider matrix. But what about ...
user9975's user avatar
  • 534
1 vote
1 answer
38 views

Events with sub-events in a matrix field - display as a calendar (combined with other events)

I'm building a site where the client has courses that run once a week. We'll have several courses and each course will have a matrix with multiple blocks detailing that weeks class. What I want to do ...
CreateSean's user avatar
  • 1,983
1 vote
1 answer
30 views

Matrix Field - Call block that matches block field value

I've got an event entry with each day of the event in a matrix field block. The block has a date field eventDate and I've got it set up so each block has a unique page that display with the date in ...
CreateSean's user avatar
  • 1,983
1 vote
1 answer
65 views

Deleting matrix block on front end form

The below code doesn't appear to be working for me, it will delete all other blocks apart from itself. I just need it to delete itself. trophyOrders is the Matrix field in the user account. {% set ...
Mark's user avatar
  • 741
1 vote
1 answer
79 views

Update user matrix field dropdown through module

Appreciate I may be asking for a lot here - I have an existing module that I use to fire events when a stripe order is completed. I would like to iterate through some User matrix blocks and update a ...
Mark's user avatar
  • 741
2 votes
1 answer
244 views

Generate a unique ID for each instance of a block from matrix field

I have a question regarding Matrix fields. I have a matrix field where one block will be used multiple times (around 4 or so) on each page. When that block scrolls into view I am firing a javascript ...
Sean G's user avatar
  • 21
1 vote
1 answer
38 views

Retrieve tags used in matrix field

I have a matrix field that includes a tags field. The matrix includes a list of events, with each event using the tag field to determine topics. I'd like to output a list of each tag used, so I can ...
univers0's user avatar
2 votes
1 answer
135 views

Resaving Matrix Blocks skips because of "not loading its content"

We recently updated one of our biggest projects to Craft 4. And today I tried to resave all the matrix block with resave/matrix-blocks but was greeted with the following behaviour: Does anybody have ...
Leonardo's user avatar
  • 471
1 vote
1 answer
50 views

Filtering entries via a table field inside a Matrix Block

James helped me with part one and it's working well: Filtering entries via a dropdown inside a Matrix Block Now I would also like to filter by a table field as well. The table is extras and the ...
bigdev's user avatar
  • 25
1 vote
1 answer
64 views

Filtering entries via a dropdown inside a Matrix Block

I have Entries with a Matrix field called events. I have an Entries field and a Dropdown field inside those Matrix blocks (block type event). I'm currently filtering by entry using andRelatedTo(['and',...
bigdev's user avatar
  • 25
0 votes
1 answer
317 views

Import CSV data using FeedMe plugin into entries with Matrix fields

I would like to import a CSV file into but the entries contain Matrix fields. When I set up the file, FeedMe provides a way to map columns in the CSV file to specific Matrix fields but I can't find a ...
Panos Spiliotis's user avatar
1 vote
1 answer
156 views

FeedMe import to update specific Matrix blocks without affecting others

I'm familiar with using FeedMe to import into Matrix blocks, but I’m not sure how to do the following: I have a series of existing entries, each with a series of existing Matrix blocks of several ...
Jonathan Schofield's user avatar
1 vote
1 answer
40 views

Finding next and previous entry within multiple matrix fields

First of all I have looked through various similar questions/answers, but don't think any of them address my specific problem. I am building a website for an artist, and I have a Category which I've ...
Grace's user avatar
  • 55
0 votes
1 answer
50 views

Deleting a matrix block type that was copied in code

I'm somewhat new to Craft, and struggling a bit with copying matrix block types. Any help would be greatly appreciated. So, I have some code that copies a matrix block and its fields, but when I go to ...
Eli's user avatar
  • 31
2 votes
1 answer
146 views

Updating specific field in from block in matrix field via migration

I'm trying to update a specific field (a dropdown) in an existing block (of type 'subhoofding') in an existing matrix field 'contentBuilder' The migration itself runs fine, show the new value as ...
Tim Bertens's user avatar
1 vote
1 answer
162 views

Saving data in a table field in a matrix field via entry form

I have an entry form with both table fields and matrix fields containing table fields. I can save data into the table fields OK with fields[fieldHandle][X][colX] but with the below, I get a matrix ...
Tyssen's user avatar
  • 653
0 votes
1 answer
40 views

PDO Exception when accessing a matrix field

This is a really strange issue - everything had been working fine for many months then all of a sudden three specific entries in the same section started throwing PDO Exception (see screenshot below). ...
Roi Agneta's user avatar
  • 1,463
1 vote
0 answers
16 views

Multilingual setup with different content structure per language

We'd like to setup a multilingual site with a parallel structure but different content per language. The content will differ specifically in the matrix fields that there will be. For example, German &...
Jane's user avatar
  • 11
2 votes
1 answer
216 views

Adding New Matrix Block via Frontend in Craft 3

Referencing https://craftcms.com/docs/3.x/matrix-fields.html#saving-matrix-fields I believe I did this correctly according to the docs and other posts here. My Matrix field is able to save edits, but ...
cherrykoda's user avatar
  • 1,114
1 vote
0 answers
49 views

cannot create matrix in craftcms 4.2.3

I just created a fresh project with craftcms 4, but am running into issues creating a matrix. Even with just one block field. It gives me the error Cannot assign string to property craft\models\...
jbrightdev's user avatar
1 vote
1 answer
156 views

Eager loading results in more queries

From what I understand it is wise to always eager load assets, I used it successfully in other cases, but here it results in a more queries, not fewer. I am trying to eager load an asset in a matrix ...
fdelaneau's user avatar
  • 123
1 vote
1 answer
44 views

Reordering Matrix blocks by date in the control panel when saving an entry

I'm trying to reorder Matrix Blocks in date order when saving an entry in the control panel. I kind of have it working using the following code. My Matrix field is 'events'. Each block contains a date ...
Lewis Jenkins's user avatar
0 votes
1 answer
83 views

Adding multiple blocks for matrix in form

I am using a matrix field for registered users on my site. I want to be able to add a certain amount of matrix blocks to each users on registration (with hidden input), so I can re-use them later on. ...
aren's user avatar
  • 79
0 votes
1 answer
137 views

Debugging slow loading entries with matrix field in Control Panel

From a recently migrated Craft CMS 2 site, there are various entries in the Control Panel which take a very long time to load (sometimes over 30 seconds). This is the same in our production ...
James White's user avatar
  • 1,171
1 vote
1 answer
808 views

NEO plugin - How to access child elements

I'm a newbie at using Neo and am finding it hard to get the concept correct for nesting and retrieving child elements. I have been trying to retrieve them by creating element queries, but I am unable ...
Wally's user avatar
  • 343
1 vote
1 answer
41 views

Sorting all matrix fields from multiple entries as one list

I have a section with a matrix field that collects multiple notes for each entry, each marked by the date the note is entered. Conceptually, the data is organized within the entries as: Entry A ...
Ed Hebert's user avatar
  • 145
1 vote
2 answers
94 views

How to get the image from the last matrix block using twig's last filter

I am on Craft CMS version 4.0.4. I used the last filter to get the last matrix, but when I tried to get the image, I kept getting an error: Impossible to access an attribute ("image") on a ...
Holly's user avatar
  • 21
1 vote
1 answer
102 views

Matrix field entry link corrupted

Some of my links coming from a matrix field with entry became corrupted. Anyone had this before and knows how to fix it?
aren's user avatar
  • 79
0 votes
1 answer
269 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: "&...
Kishore Natarajan's user avatar
2 votes
0 answers
82 views

How do you access the Label of a Table field column with a Type of Dropdown?

How do you access the Label of a Table field column with a Type of Dropdown? I have a Table field in a Matrix block and one of the column types is a Dropdown. When I use the {{ row.handle }} syntax ...
doctorgloom's user avatar
1 vote
1 answer
68 views

Matrix content disappears in Live Preview when updated

I'm having an issue where, if I edit any matrix content in Live Preview, all matrix content disappears. When I first open preview, any existing matrix content will display properly, but as soon as I ...
artmem's user avatar
  • 1,022
1 vote
1 answer
711 views

Creating an entry with a matrix field using GraphQL

I am trying to create a new entry in Craft CMS using GraphQL. The entry has a matrix field called "vehicles" that has a single block called "vehicle". This block has a single field ...
theboldben's user avatar

1
2 3 4 5
14