Questions tagged [entries]

Entries hold the content that you want to display on your web pages. Each entry has an Author, a Post Date, an Expiration Date (if desired), a status (enabled or disabled), and, of course, content.

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

Request must accept JSON in response

I am getting error message while loading entries from dashboard. Please see attached screenshot - While looking into browser console, I found the error message Request must accept JSON in response (...
1
vote
1answer
24 views

How to Auto-generate a Title based on a multiple entries titles? (using a Entries field type)

I have two sections (both Channel type): Releases Movies Releases have one Entries field type, the source is Movies So, I want Auto-generate a Release title from Movies, like this: Titanic, Avatar, ...
1
vote
1answer
20 views

Remove expiration date field from section / entry type

By default, every entry has an expiration date field allowing the editor to expire an entry. I'm currently working on an application with some sections where expiring an entry doesn't make much sense ...
1
vote
4answers
38 views

Querying all content entries for a page

I'm new to Craft CMS and I'm trying to build a new website using Craft. I want my client to be able to change the order of displaying contents of a page by dragging and rearranging them in the Admin ...
2
votes
2answers
93 views

Filter Entries by Matrix Block

I have a matrix field with two block-types ("sound" and "video") I want to get all entries that have a matrix field with a certain block-type. At the moment I have: {% set entries =...
1
vote
1answer
31 views

Entries Overview: Add Field Columns

Does anyone have an idea how I can add columns in the entries overview? Columns with the title of the fields that exist in the page and are filled with content. Thank you
3
votes
2answers
385 views

Element query: find entries where a field's value is greater than, or less than another field's value?

I would like to do something like this: craft.entries.section('mySection').field1('> field2').all() And it should return all the entries in mySection whose field1 value is greater than their ...
2
votes
2answers
34 views

sort by checkbox field with multiple options and by postDate desc

Section handle: players field handle: teamName The checkbox field has two options: Cubs Tigers Not all players will have the teamName field checked. I want to order players who are Cubs or Tigers ...
1
vote
1answer
38 views

Listening for Change at Entry Save

I want to send an email if/when an entry is saved with a lightswitch switched on after previously being off. I have the below code in my plugin's init file, but I don't know how to check for the ...
8
votes
4answers
13k views

Filter Entries by Field Value

How do I filter a list of entries by the value of a field? For example, if I have a lightswitch field called "Featured", how do I output just the featured entries?
2
votes
1answer
81 views

How to structure data: Solo Events (Lectures) and Group of Events (Conferences)

I am working on my first craft project and am wondering how to create the following data structure: I have a page with a large archive of solo-events (lectures, discussions etc). I think I will use a ...
5
votes
2answers
825 views

Is there a “sticky post” function built into Craft?

How would I make a post(s) sticky so that it appears first in the results and does not repeat later in the results?
0
votes
0answers
19 views

Entry list field get duplicated entries from specific section

I have some weird behavior when I have an entry list field (in a super table, but I get the same behavior from the native entry list field type). When I select an entry from a certain section, it will ...
6
votes
3answers
2k views

How do I enable redactor rich text editor in a front-end form?

I have a front-end form for registered users to submit entries, however I'd like to have a WYSIWYG editor like the dashboard. How would I get redactor working with this form? My form: <form ...
0
votes
0answers
34 views

How can I get field values for the sections that I created

New to Craft CMS. We decided to make Craft headless and have an api fetch the data. I have 5 (simple) sections that represent 5 pages and they all have some fields in them with some texts or images. ...
1
vote
1answer
22 views

Output Channel entries on another page with a matrix block

I know im doing something small wrong but I cant see what at this point. I have a channel called 'testimonialEntries' and I want to randomly output one of these entries on seperate pages. I cant ...
0
votes
0answers
15 views

Sort by entry type in admin?

I want the list of entries in admin to allow sorting by entry type. It can sort by any arbitrary field, but not entry type or author (for some weird reason). Is there any way to modify that without ...
1
vote
1answer
22 views

Whats the best way to place content without using a lot of categories?

I have a technologies magazine and recently find out about Craft CMS. It looks like I can make everything that I need to but I need advice. So basically we are writing about smartphones, cars, ...
2
votes
2answers
249 views

Programatically Changing Entry Types?

I have a people channel that historically has used another field to decide if they're a "featured" person or not. The field set for "featured" people has now diverged from what a normal person has, ...
0
votes
0answers
9 views

Batch check date and alter entries

Good Evening. Im looking for a way to regularly check a full section of entries to see if a date has been passed. If it has I want to place a checkbox marker within that entry. Has anyone come ...
1
vote
1answer
17 views

Find entries with multiple start and end dates from the same date field

I've got a front end form where a user can select multiple months to find entries with dates in those months. I had code that does that for one month, but now I need to expand that to multiple months. ...
1
vote
1answer
62 views

How do you eager load or join reverse relationships for entries?

So I have structures that are related in the follwing way: Locations has many Providers Providers has many Health Topics I know that I can eager load all Locations with related Providers and Health ...
1
vote
1answer
43 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'...
3
votes
1answer
699 views

Get matrix entries related to an image asset via specific field

I have a Matrix field that has an Entries field. I want to get those entries, in the selected order, removing entries that don’t have an image asset assigned to the pageImage field. Attempt 1 Gets ...
0
votes
0answers
11 views

Working with content of HTML <meta> http-equiv Attribute in extending main layout template

I am extending the meta of my main layout template in one page only, utilizing the technique explored in some depth here. How do I add an HTML block from template extension to main layout template? (i....
0
votes
0answers
37 views

Multiple structures sharing the same entries?

I'm working on a site that currently has one structure ("projects") that organizes my entries for each specific project. In the admin I can reorder these entries manually... so far so good! ...
0
votes
0answers
51 views

GraphQL returning array on entries field with limit set to 1, instead of 1 object/entry

If I do a GraphQL query on an asset (entries field type, limit set to 1), I get an array in return. Even if I limited the asset to just 1 in the field. So my GraphQL returns: "image": [ { &...
1
vote
2answers
18 views

Associating multiple FreeForm entries with a single Craft entry

I have a Freeform which collects information on item(s) to be converted from analog to digital (VHS tape 16mm film, etc). The form requires the user to be logged in. There may be cases where the user ...
1
vote
1answer
50 views

Filter entry query by a custom field value

I have a channel, 'pages'. Within that channel is a dropdown 'navigation'. The values in the dropdown are 'mainNavigation' and 'hidden'. I'm trying to set an entry query that only pulls entries where ...
0
votes
0answers
33 views

Why aren't my images displayed on the homepage

Our homepage.twig is a section Our Matrix is called "angebote" (it's german don't ask :D) We created two entries for our matrix This is our Code inside the homepage.twig file for including ...
1
vote
2answers
72 views

How to build a web page using different sections created in Craft

I am a beginner in Craft. I have a Craft website. There is an HTML design with me. From admin, I divided the HTML into sections and created entries based on that. All the coding related to each ...
1
vote
1answer
39 views

Query for multiple date ranges on a date field

I'm able to successfully query a date field for a date range using this syntax: {% set entries = entries.startsOn(['and', '>= '~firstDay, '< '~ lastDay]) %} What I would like to do however is ...
1
vote
2answers
2k views

Ordering entries by custom field (integer)

I'm new to craft so may it be a basic question, however I can't find an answer for it :-/ I have custom field 'width' in my entry type defined as integer. What I need to achieve is quite simple: {% ...
0
votes
0answers
17 views

What's the best way to add a copy to clipboard button to the Preview / View button group in the entry editing UI?

View and Preview buttons work fine, but I want editors to be able to easily share links to drafts with others. The nicest solution would be a Copy button which would copy the preview URL to the ...
1
vote
1answer
33 views

no entries or files visible

I got given a db dump using Craft 3.5.16. After installing all the dependencies using composer and npm I can login to the admin section. However, I do not see any entries or any files in the admin ...
2
votes
1answer
217 views

How to output a Rich Text Link to an Entry as a tooltip?

I have a Glossary channel on my site, with Term and Definition fields. I would like Terms to display their definitions throughout the site...whenever so assigned by the content editor. I currently ...
2
votes
1answer
40 views

Getting entries excluding the first

I'm trying to set up having the first entry pull in and then later down the page pull in the remaining posts (as I need to break the loop with other content). I'm a little unsure how to set up pulling ...
3
votes
1answer
118 views

Rendering pages from Craft CMS as static HTML

Has anyone tried creating a process whereby the pages/entries generated from Craft could be presented as static HTML? I am keen to know what different approaches have been taken in the past as we are ...
1
vote
2answers
51 views

Convert string to date format that can be used in a craft.entries tag

I've got a date string from the url in this format: "2021-06-01" (year-month-day) and I want to find entries that have a date in the year and month from that string. The date is a date field ...
0
votes
0answers
53 views

Manually sort entries related to a category in the admin

Is anyone familiar with a way (in the admin) to manually sort the order of entries related to a category? For example, a "Software" entry gets assigned to multiple categories during entry. ...
12
votes
4answers
7k views

What is the best way to exclude an array of entries?

I have done a "Is featured" switch on articles which works great. I can list the latest 4 featured articles but after that I would like to list the others (Of course they may be featured too)...
3
votes
2answers
667 views

Order grouped entries

I need to group and order member profiles alphabetically but I can't get it to work. Have a look here: http://ffsd.de.w0129b45.kasserver.com/mitglieder (It's german but you should get the idea :)) In ...
2
votes
1answer
14 views

Passing null values to queries, Sprout Reports

In Sprout Reports, I am creating a list of users in my settings file. I first need an option with value of null. {% set options = [] %} {% set options = options|merge([{ label: 'All users', value: ...
1
vote
1answer
28 views

Pull Matrix Block from Multiple Entries without Showing Duplicates

I have a set of entries I am pulling ID. (group) Each of those entries has a Matrix Block. (people) That Matrix Block Type (person) has an entries field. In some cases the same entry (person) is ...
1
vote
1answer
24 views

Fetch pending entries with GraphQL

I'm setting up Craft to be used headlessly with a mobile app, and content will be created several days before it is published. I want app admins to be able to see upcoming/pending entries. Is there a ...
1
vote
1answer
10 views

Order entries by DATEDIFF

I'm trying to order the results of an entries query by the difference between two date fields but I can't seem to get it to work. Here is my query: {% set todaysStreamsParams = { section : 'films', ...
9
votes
2answers
2k views

Exclude multiple entries by their IDs

I have a structure people that I need to grab entries from. However, I need to exclude certain entries as some are already displayed on the page in a different manner. I know that you can exclude a ...
4
votes
3answers
1k views

Display Entries in a calendar

I have a section for holding calendar entries stored by postDate in the CMS. On the front end I want to basically display these in a calendar. I have code which displays the calendar looping through ...
0
votes
0answers
21 views

Find entries that use a specific block in their Matrix field

I am using this solution to get the latest article with a video. This works great, until I delete the Matrix block in my latest entry with video, then it still finds that entry, but without any data. ...
1
vote
1answer
50 views

Performance issues in CP with +60k articles database

We are are working with a large dataset of over 60k articles. The craft control panel has a very hard time loading the entries list tables. Using debug I see that the queries that takes up the longest ...

1
2 3 4 5
19