We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [entries-field]

The tag has no usage guidance.

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

Filter entries by custom date field

I am trying to filter entries by a date range using a custom field and finding it more difficult than I think it should be. I have found the following two questions that seem similar: How to display ...
1
vote
1answer
13 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 ...
0
votes
0answers
33 views

Database Exception – yii\db\Exception

I created a plaintext field called 'researchYear' that was add to a section called 'research'. I added a record to the section. I went back to the field, renamed it to 'researchDate' and made it a ...
1
vote
1answer
51 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 ...
1
vote
1answer
23 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 ...
0
votes
0answers
23 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/...
1
vote
1answer
33 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. ...
1
vote
2answers
37 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({...
2
votes
1answer
65 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....
3
votes
1answer
182 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 #} {% ...
1
vote
0answers
47 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-...
1
vote
2answers
134 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') %} {% ...
2
votes
1answer
326 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 ...
2
votes
1answer
98 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, ...
1
vote
1answer
128 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/...
1
vote
0answers
72 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 ...
0
votes
1answer
53 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 ...
0
votes
2answers
297 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 ...
0
votes
2answers
65 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 ...
3
votes
1answer
207 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($...
1
vote
1answer
144 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 ...
1
vote
1answer
31 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 ...
0
votes
1answer
67 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 ...
2
votes
0answers
115 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 ...
1
vote
1answer
333 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 (...
1
vote
1answer
69 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 ...
1
vote
1answer
176 views

How to render an entry type of a Matrix in HTML?

<a href="{{box.learnMoreLink}}"> {{ box.learnMoreText }} </a> Currently I have a Matrix field that has two plain-text fields. I want to change the href ({{box.learnMoreLink}}) from plain-...
1
vote
1answer
64 views

I managed to make an entry type that won't let me create any entries. How can I fix it?

I managed to make an entry type that won't let me create any entries. The site is for a rock band, and the entry type in question is called "Shows". It contains five fields: Venue Lineup Date Time ...
1
vote
1answer
276 views

Sorting Entries field results by category

I have an entries field 'physicians'. I want to output the selections from that field and sort them by category (also named 'physicians') - with the category heading above each category group. I can'...
1
vote
2answers
230 views

Conditional to see if an Entries field in a user profile contains a certain entry ID

I've got a user profile field named Books. This is an Entries field that contains entries from the Books channel. The idea is that users will save books to their their profile to show they have read ...
-2
votes
1answer
772 views

How to create an entry

I come from a Node/React/Angular background and am entirely new to CMSs and for the life of me can't figure out how to post an entry. I'm on the Entries page, and have one that I can edit, but how do ...
1
vote
1answer
723 views

Frontend form with relation to an entry

I have a field called "assetId" from Entry "A" with Field Type "Entries" and Source "B". How can I build a form so that a relation between these two entries will be established. In the craft backend ...
3
votes
1answer
92 views

Why if I change ie. drop down value, all entries needs to be resaved to take changes? How can I prevent it?

And why clearing cache is not enough?
1
vote
1answer
24 views

How might I select specific data in an entry to be displayed when selecting an entry?

I am not sure if i need a plugin to accomplish a specific task or if Craft CMS can natively handle this task. I created bios for people in a channel of bios. Each entry has a Job Title text field to ...
2
votes
1answer
122 views

Omit Featured Entry from loop of entries with additional omissions

I have a homepage single section has a field for entries (only 1 can be selected). This field is called featuredEntry. In my homepage template (index.html) I set a variable {% set featured = entry....
2
votes
1answer
33 views

I want to display entries that have a field that is the same as a field in a global variable

There is a publishMonth (multiselect) and publishYear (radio buttons) field in each article. They do not correspond to an actual date. Each article is is associated with one year, or one or more ...
1
vote
1answer
86 views

How to display entries relevent to date assigned

I am creating a website for not-for-profit organization that help victum of domestic violence. I have a page called Event which display all fund raising events under each month. I have setup Date/...
1
vote
2answers
183 views

Matrix with an entries field and need to grab category title

Any help would be greatly appreciated! I hope I explained my situation in enough detail to get the help that is needed. Currently I have two channels that need to share information. This is going ...
2
votes
1answer
772 views

Passing Multiple Relation Criteria In Plugin

I have a channel (projects) that has two different entries fields (year & research theme), both of which I want to be able to search in a plugin. The docs for the relatedTo entries method show ...
1
vote
1answer
136 views

How do I set the value of a custom entries order field from a plugin?

I'm trying to set the value of a custom field on an order when saving an entry. I found an example of how to do this for a simple text field, but the field I'm trying to set is an entries field, not ...
3
votes
1answer
721 views

How can I programmatically set the value of an Entries field type?

I need to set programmatically the value of an Entries field type when I'm going to create a new entry from the admin form, after the form loads I'm searching for the entry I need to set in the ...
2
votes
2answers
133 views

Restricting relationship field by author

First site using Craft and impressed thus far. I'm going to be allowing CP access for all users, and these users will have access to multiple channels. I want them to be able to relate their entries ...
1
vote
1answer
658 views

Search entries AND within associated assets fields

I have a large list of entries. Each entry has a a bunch of fields and a file-field with one or two files. Those files have related field (Author, Date, ..). I have now implemented a search. All ...
1
vote
2answers
148 views

Put simple content into Craft and grab it in JavaScript

I want to put a few simple text fields into Craft CP and then be able to retrieve them with JavaScript. What is the best way to structure this in Craft? I'd like to be able to create/edit an "entry" ...
0
votes
1answer
167 views

Showing related entries field

I have a section called Services. I have another section called Case Studies. For each Case Study I want to show which service is being used so I add an entry field and choose the right service. On ...
2
votes
2answers
184 views

Maintaining a relationship of parent from children selected through entry field

Not sure that is the best title but: I have a Section called Research Projects. An entry from this section contains a number of images, videos and audio entries in a grid chosen through an Entry ...
1
vote
1answer
553 views

Sort entries in a category or entries field?

I have a Products Section and a Product Category Structure Section In Products there is an Entries Field where the Category is selected from the Product Category section. Is it possible to sort the ...
0
votes
1answer
647 views

Accessing custom fields from User Model

I have a User entries field called 'company'. I'm writing a bespoke plugin to manage users in the front-end and was wondering how I can access the content of this field in my plugin via the user model?...
1
vote
1answer
301 views

Ordering relatedTo entries

There are a few tickets touching on this, but the solutions proposed aren't working and I'd like to share the use case: I have a Table of Contents page that is outputting a set of entries based on an ...
1
vote
1answer
546 views

for loop: get the title of the first element of an entries field

I want to get the title of the first element from a entries field in a for loop. I think its easier to understand with a code example: {% set programs = craft.entries.section('program_point').block....