Questions tagged [entries-field]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
59 views

How to get column name of an entrie's field

I want to query some entries in a section. I am able to write a query using a GET Param as a filter on the title field. If I want to query a custom field however I need to know the precise column ...
user avatar
1 vote
1 answer
76 views

How to find next sibling from entry order of parent entries field

I have an index of projects that uses a standard entries field to select multiple entries to display and also provides a custom order (different to their Structure order). This is my "Projects&...
user avatar
0 votes
0 answers
39 views

Entries Field save errors

I'm running into some odd behavior with an entries field. There are multiple entries fields on the site and all work as expected but one. The behavior is as follows. If there are multiple entries ...
user avatar
1 vote
1 answer
102 views

Field dropdown - default value is not working in CMS

maybe this is a weird question but I have a dropdown field with values from 1 to 10, and set 4 as a default value. The thing is: I edit my entry and when I see my dropdown the value is number 1, but I ...
user avatar
  • 121
3 votes
1 answer
55 views

How can I query entries related to another section’s entries having specific Matrix checkbox field values?

Let’s say I have a site with two sections: Things and Colors. Things has a Matrix field (thingsBlocks) with a Sizes block type. That Sizes block type has a checkboxes field (sizes) with values that ...
user avatar
  • 3,921
1 vote
1 answer
38 views

What's the attribute of a Matrix field to add error message

I try to validate some fields before saving the entry, if the field is invalid, prevent the entry from saving and return the error message, I'm doing it via Element::EVENT_BEFORE_SAVE event. It works ...
user avatar
  • 27
0 votes
1 answer
47 views

How to bind JavaScript events to entry form fields in the control panel

When adding an entry, there is a field called resource id, I want to build a front end event on this field, after the value input or changed, trigger ajax to call an external api to check whether the ...
user avatar
  • 27
1 vote
1 answer
48 views

Allow drafts in entries field

Is it possible to allow selecting drafts in an entries field? Not drafts of an existing live entry, but drafts that aren't published yet. The only thing I found is an ElementCriteriaEvent triggered in ...
user avatar
  • 6,820
1 vote
1 answer
184 views

How to update a User's Entries custom field only once just after save?

From a custom module, I'm listening to EVENT_AFTER_SAVE_ELEMENT events, to be sure to get the Entry ID after save: Event::on( Elements::class, Elements::EVENT_AFTER_SAVE_ELEMENT, function (...
user avatar
1 vote
1 answer
134 views

On a Craft 3 multi-site, how can I setup an Entries field to select entries from other sites?

On my primary site on a Craft 3 multi-site, I have an Entries field used to add links to other sites' entries. These entries are from Channels / Stuctures that are using the Only save entries to the ...
user avatar
1 vote
1 answer
704 views

How do I write a GraphQL query to search through sub-entries/entries as fields and return the whole entry?

So I have a fairly complex section structure that (on an Entry Type) has a matrix field that contains entries as fields(sub-entry) within a blocktype. I'd like to write a GraphQL query such that when ...
user avatar
  • 123
2 votes
1 answer
93 views

How many levels will RelatedTo work? In Reverse?

The TL;DR summary: if I have a related Entries field that I access, can I then access an Entries field within that entry? I created a learning project running on MAMP to help me learn Craft, and one ...
user avatar
1 vote
1 answer
84 views

Can't get a simple Reverse Relations for Entries field to work

I'm trying to get a simple Reverse Entries working, nothing fancy, but I'm stumped. I created a little personal project just to help me stretch and learn Craft better. I picked the NFL Draft just ...
user avatar
2 votes
1 answer
77 views

Element API using the entries field to display related content from a separate section

I've seen similar questions but none seem to help. I have two sections named jobs and jobDescriptions. I'm using the entries field to pull in a description field from the jobDescriptions section to ...
user avatar
  • 23
1 vote
1 answer
62 views

Best Practice on how to build a Pricing Page on CraftCMS

CraftCMS gives us so many ways/options on how to build pages that I'd love to see what people are doing with their pricing pages! I'm planning on building something similar to Amilia.com or Slack.com. ...
user avatar
1 vote
1 answer
87 views

How do you save custom fields on an EntryFixture?

I can't for the life of me figure out how to setup EntryFixtures in craft to populate with custom fields. I'm using the project config which already has the sections and fields defined in my tests. I'...
user avatar
0 votes
0 answers
31 views

Structuring externally scraped content

I scrape content from an external website using JSON API with the FeedMe plugin. Content is saved as entries with plain text and redactor-type Fields. How can I structure this content so that I can ...
user avatar
  • 11
2 votes
1 answer
138 views

what is the correct way to programmatically set checkboxes (MultiOptionsFieldData) in a migration? (solved)

I need to update existing entries after the creation of a checkbox fields, to apply the default value to everything that was created before the availability of the new field. The code should run in a ...
user avatar
  • 141
1 vote
1 answer
43 views

After Migration from v2.9 to 3.5 - some entries added into an entry-relation-field get added twice after saving

We migrated a craft cms site with 3 locales from v2.9 to 3.5 We have a section with a field of type "Entries". When editing the entry, and adding certain entries to this field, those get ...
user avatar
1 vote
1 answer
330 views

Database Exception Column not found: 1054 Unknown column 'configVersion' in 'field list'

I get this Error when i want to save a Field. Also when i want to create a new field. I can hit the goback button and strangely the field gets still saved. I work local and have project config ...
user avatar
  • 213
1 vote
1 answer
17 views

Output specific entry from entries field based on position

I have an entries field in a section, I am looking to output a certain selected entry from this field based on its position. For example I want to out the 2nd or 3rd entry only from this entry field, ...
user avatar
  • 419
1 vote
1 answer
193 views

Possible bug when using Entries fieldtype with multi-site

Thought I'd run this by some people who know what they're doing before I report this as a bug. I have a multi-site configuration. One of the sites has a base URL of example.com and only contains one ...
user avatar
  • 283
1 vote
1 answer
83 views

Feed Me import from CSV ignores decimal point

I use Feed Me to import values from a .csv file into my entries. Since a day i have an issue i can't explain. I didn't change anything. Precisely, the issue concerns a number field. In the .csv file, ...
user avatar
  • 213
1 vote
0 answers
97 views

Migrating to Matrix using Feed Me and Element API

How can I use Element API to move my entry fields into a matrix-based content builder? I'm going off the docs found at https://docs.craftcms.com/feed-me/v4/guides/importing-into-matrix.html#setup-your-...
user avatar
1 vote
1 answer
145 views

Group by related entries field

I have a channel of Musical Compositions: Now all these Compositions have a Composer. All the composers are stored in a separate channel and then linked with their respective compositions trough a ...
user avatar
  • 3,664
1 vote
1 answer
43 views

Displaying An Entry's Image on Edit Page

Currently, these Entries display just the title. Has anyone found a way to display entries as a thumbnail (from it's image field)? I'm starting to look at plugins, but haven't seen anything that would ...
user avatar
1 vote
1 answer
25 views

Show Category Title only where an entry has been included in an Entries field

I have a Category Group with an Entries field assigned so the admin can select which existing Entries should fall within a given category. An Entry can be assigned to multiple categories. On the ...
user avatar
  • 1,173
1 vote
1 answer
236 views

Undefined index error in trying to duplicate file

I've inherited a Craft-based website, and I'm much more familiar with WordPress, so please pardon the extremely basic question: the homepage for this site uses {% extends "_layout" %} and then ...
user avatar
  • 113
1 vote
1 answer
49 views

How to limit sources for Entries field set up via migration

I'm seeting up all of my project's fields using migrations. This works really well, but I haven't been able to figure out how to limit the sources (sections) for an entry selection field. I've based ...
user avatar
  • 21
0 votes
0 answers
58 views

Add Matrix Blocks to existing Entry with Form without discarding existing Matrix Blocks

When I want to save an new Matrix block with an form to an existing Entry: <form method="post" accept-charset="UTF-8"> {{ csrfInput() }} <input type="hidden" name="action" value="entries/...
user avatar
  • 11
1 vote
1 answer
52 views

How to include a lightswitch for each related entry in the source element of a relationship

I have a Services section in which I keep a related entry field for News. (News by Service) The News items to be displayed for each service are selected in a "News" entries field in the Service entry. ...
user avatar
  • 137
1 vote
2 answers
306 views

Get all available fields in plugin setting page

I am trying to get all the fields created by admin in my custom plugin setting page. As we can get entries , in same way can we have option to get the available fields. {{ forms.elementSelectField({...
user avatar
2 votes
1 answer
369 views

Use an entry field's value in body class

I have created a plain text field that is assigned to a section and is available in the tabs for entries in that section. I want to use this field's value to modify the CSS on my template. My _entry....
user avatar
3 votes
1 answer
360 views

Related Entries not sorting correctly

Craft 3.0.16.1 I have a relationship that is outputting entries, but the entries are not in the order as selected. {# not sorting correctly - **fieldName** is a variable passed via include #} {% ...
user avatar
  • 1,907
1 vote
0 answers
87 views

Check the field type of all the attributes of an entry

Here's the whole picture: I'm trying to make an API endpoint which should output everything from an entry: First I did this: public function transform(Entry $entry) { return $entry-...
user avatar
1 vote
2 answers
441 views

Group entries by Category and then in each category by related entry field

I have a channel with categories and an entries field. I need to first group all entries by their category. This is working fine. {% set entries = craft.entries.section('publicationsChannel') %} {% ...
user avatar
  • 1,907
2 votes
1 answer
452 views

Element API Fetch Entries URL Within Matrix

I have a matrix with a field to set a Entries URL. Unfortunately the entry is not being returned, only an empty object. Here are my field settings below and element api code. See below for the ...
user avatar
  • 153
2 votes
1 answer
227 views

Using values from one entry as default values in another?

Is it possible to do the following in Craft? I want to set up course information as follows: 1) have a courseType which contains default values for that type of course - name (i.e. 3 hour skills, ...
user avatar
  • 23
1 vote
1 answer
197 views

Setting channel url format to include value of entries fieldtype URL

I have a channel with an entry type which has a simple dropdown for {region} and an entries fieldtype which links to a channel of destinations. I'd like the URL format for the channel to be /region/...
user avatar
  • 509
1 vote
0 answers
174 views

Front end entry dropdown with null option

I have successfully implemented a front-end form that allows the user to add new "blocks" to a certain matrix field. This matrix field has one text field, two date fields, and one entry field that ...
user avatar
0 votes
1 answer
69 views

Entries from previous year 2016 not displaying

Ok, so this is pretty bizarre... Entries from 2016 are NOT displaying when searched for in the admin panel. Whether we search by the year, title, or part of the title, until they're edited (using the ...
user avatar
  • 1,369
0 votes
2 answers
463 views

Show all entries from an entry field

I have an Entry field (page) as part of my Matrix field (footer). When the client selects 5 entries, I want to display them all in my list and not just the first. I can only seem to get my code ...
user avatar
  • 327
0 votes
2 answers
88 views

Calling Sub Channel Entries

How would you go about pulling a selected entry from one channel into another entry using Craft variables? For example, I have a page with an author channel field that allows a user to select the ...
user avatar
3 votes
1 answer
238 views

Set Entries field in Commerce order on completion

I'm trying to set an Entries field within a Commerce Order once the order completes. I've tried using the onOrderComplete event like so; craft()->on('commerce_orders.onOrderComplete',function($...
user avatar
  • 1,999
1 vote
1 answer
149 views

Safe number of related entries – before performance hindered?

Is there a safe limit to the number of entries related to another entry via the entry field (including nesting 2 deep) before putting too much strain on performance? I'm approaching a products range ...
user avatar
  • 447
1 vote
1 answer
35 views

Is it possible to display another column in Entries type field?

I would love to be able to show another column inside Entries type field. Specifically, Image field. Basically,the same functionality as on the Entries list. Is there a plugin or another way of ...
user avatar
  • 393
0 votes
1 answer
91 views

How to display all fields for an entry within an entry field type?

I've got a portfolio site I'm building, and on each project's page I'm wanting to show a list of people who worked that project. I created a channel section called "work" with an entry field type ...
user avatar
  • 35
2 votes
0 answers
175 views

Default values of new fields for existing entries

I added a new SEOmatic field to a section that has around 500 entries. As for any other new fields that you add to a section, the default values are only applied on the entries if you open and save ...
user avatar
  • 196
1 vote
1 answer
522 views

Accessing entries in a matrix field in plugin

I am writing a plugin function that takes an entry id, the entry has a matrix field (called block) and the matrix has a blocktype which contains a number field (blockStep), an entries field (...
user avatar
1 vote
1 answer
106 views

Disabled entries don't show up in the Linked entries field when displayed in the CP entry list

As you can see, I would like to see what challenge the submission is linked to, even though that Challenge might now be turned off (expired or disabled). Is this a bug or intended behaviour. Is ...
user avatar