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
1 vote
1 answer
20 views

Is it possible to change the order of entries or posts on the homepage?

I need to change the order of the posts / entries on our homepage - is there a way of doing that?
user avatar
  • 11
1 vote
0 answers
27 views

Backend: Entry list failes to load

I use Craft Pro CMS 3.7.39 [edit: now updated to Craft Pro CMS 3.7.42] in headless mode. Worked fine for some weeks now - but without configuration or code change some of many sections entry lists ...
user avatar
  • 11
0 votes
0 answers
12 views

Expiry Date not being saved

we are trying to take advantage of the expiry date of Entries in Craft, but have observed that this field is not being saved into the database. Any ideas why this isn't being saved? Craft CMS 3.7.39
user avatar
1 vote
1 answer
23 views

Update Search Index on Entry create and update

I have a multiselect drop-down for age group and I have set "Use this field’s values as search keywords" check box checked. when I create a new entry or update existing entry . we are not ...
user avatar
0 votes
0 answers
13 views

Freeform - Prepopulate from entry

Good Afternoon, Is it possible to have a freeform form render and then be prepopulated with data from an entry? I would like to create an UPDATE form for existing entries Edit: Ive maanaged to do ...
user avatar
1 vote
1 answer
23 views

Get all entries by structureId

It is possible to get all entries by structureId ? If yes how ? For now i use something like this: {% if entry.parent %} {% set relatedEntries = entry.parent.children()|filter(v => v.type == '...
user avatar
  • 53
1 vote
1 answer
18 views

Returning Metadata Fields with GraphQL?

I'm trying to pull as much information from the CMS as possible via the GraphQL API. I can't seem to find any info about how to extract the metadata information for the various entries in the CMS. At ...
user avatar
  • 21
2 votes
1 answer
33 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
23 views

Creating an asset from an API using a module

I'm currently making a module that I'm hoping is going to create entries and assets from an API. I've got the entries part working and now I'm trying to create an asset from a URI of an image. I've ...
user avatar
1 vote
2 answers
26 views

Construct entries object from an array of IDs

I have 2 arrays of entry ID's that I need to merge and generate an entries object that I can iterate through and paginate. The reason for doing it this way at all, is that I need to display entries ...
user avatar
2 votes
1 answer
23 views

Updating entry field

I need to save page views for some pages. I ended up doing it with this code: {% set pageviews = entry.pageviews %} {% do entry.setFieldValue('pageviews', pageviews+1) %} {% do craft.app.getElements()....
user avatar
  • 49
0 votes
0 answers
39 views

'Endless Loop' Kiosk Crashing Randomly - Craft 2

I am needing an 'endless loop' through my entries for a kiosk application, and was wondering if this approach would work for that? I had been using just Twig on a template, cycling through my selected ...
user avatar
  • 368
1 vote
1 answer
30 views

Possible to have a dynamic site base URL from entry field data?

Is it possible to have a dynamic site base URL coming from an entry's field data? I want to do something like https://{entry->subdomainField}.example.com/{entry->slug} with entries coming from ...
user avatar
1 vote
0 answers
24 views

Craft 2 - Date Comparison In Criteria - Impossible to access an attribute ("today") on a string variable (">=")

I am working with a template in Craft 2, and I am setting up the criteria for entries to be displayed. Here is my code (below). {% set today = now|date('Y-m-d') %} {% set criteria = { section: '...
user avatar
  • 368
1 vote
1 answer
26 views

Bad Gateway when using cached category query

I'm trying to find all tiers that have associated entries for a selection dropdown. This does not work, and throws a 502 error {% set allTeirs = craft.categories.group('catPartnerTeirs') %} {% set ...
user avatar
1 vote
1 answer
36 views

Find First Entry That Matches Current Category

I need help. I am creating a category listing which I have working great. The next step is where I'm struggling a bit as I can't seem to query the related entries on a loop basis. For each "...
user avatar
  • 45
1 vote
1 answer
51 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
2 votes
1 answer
27 views

Admin Entry Missing Sidebar

I've run into an issue on the admin backend for my site. When opening an entry, the sidebar is missing. In addition, all the interactive elements (deleting a block, removing an asset, viewing the save ...
user avatar
  • 41
2 votes
1 answer
37 views

Filtering lists of entries in the control panel by entry type

I’m aware of Filtering/searching for entries by category in the control panel, but that doesn’t work for: entryType:"String" …where ‘String’ is the entry type name or handle, or… typeId:Int ...
user avatar
1 vote
1 answer
67 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
1 vote
1 answer
31 views

Updating an entry slug while viewing the entry on the front-end

I'm currently working on an app and functionality as part of the app allows users to edit entries via a front-end form. As part of editing the entry, users can update the entry title (and the slug ...
user avatar
0 votes
0 answers
17 views

Entry Looping Template With Javascript and 500 Internal Server Error

I'm working with a looping mechanism in my Twig code that loops through entries and displays them for a kiosk type of application. The loop itself works for the most part, although after a few hrs, it ...
user avatar
  • 368
1 vote
1 answer
46 views

Get entries which are not related in to another section

My scenario is I have entries in sectionA these are related to entries in sectionB. I want to be able to show all entries from sectionA which are not related to any entry in sectionB. SectionB has an ...
user avatar
  • 419
3 votes
1 answer
49 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,901
0 votes
0 answers
16 views

How to select entries based on site group?

I have multiple sites with multiple languages. In Craft 3, each language is a separate site, we can group them by site group. For example, In the USA site group, I have USA - English and USA - Chinese....
user avatar
4 votes
2 answers
378 views

Get array of titles instead of whole collection of entries' attributes

I know that to get the entries I can do: craft.entries.all() but instead of getting the whole collection of entries, I would like to get an array of titles from those entries (or any other field). ...
user avatar
0 votes
0 answers
23 views

Unique uid across sites?

Are entries' uids unique across all sites in a multi-site setup? I use Craft CMS 3.7. I couldn't find anything about this question in the docs. Many thanks Christian
user avatar
1 vote
1 answer
61 views

Why can't I see my programmatically-created Entries in GraphQL/GraphiQL?

I am using a module controller to create Entries, like this: $personEvent = new Entry(); $personEvent->sectionId = 6; $personEvent->typeId = 1; $personEvent->authorId = $user->id; $...
user avatar
1 vote
1 answer
26 views

What's the best strategy for products that are sold?

I wonder what's best practice for products that are sold? My strategy is to add a lightswitch "sold" and don't display sold products on the website and in the sitemap.xml, in the hopes that ...
user avatar
  • 555
0 votes
1 answer
58 views

Find related entries by specific position in the entries field

I'm looking for a way to limit a reverse relations query to only match the first selected entry in an entries field. Some context: I have two entry types, institutes and offers. Offers have an ...
user avatar
  • 6,030
0 votes
0 answers
41 views

how to retrieve any/all related entries?

I have list of banks(institutions) that each one has branches. I'm using GraphQL API. By the bellow code I can get the branches with associated bank(institutions): query branches { entries(limit: ...
user avatar
1 vote
1 answer
20 views

Creating a channel (or entries) using a similar channel

I am currently trying to make a channel called "classmates" similar to a channel that is called "News". I have this working beautifully, but I am not sure how to set a different ...
user avatar
1 vote
1 answer
53 views

Can't get a Single

I am trying to get a Single. But it doesn't seem to work. Does anyone know what I am doing wrong? I already double checked the slug, and getting normal channels is also no problem. This is the code I ...
user avatar
1 vote
1 answer
596 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
1 vote
1 answer
26 views

Twig Template spits out jibberish when trying to access user-defined fields

I have an Entry called Groups (I'm wondering if this might be some sort of reserved word issue) and, with Twig, I can bring out the base fields of id and title with no issue but when I try to pull ...
user avatar
0 votes
0 answers
36 views

Failed to publish entry when the autosave is not yet complete

When I publish an entry with that has Neo field, after I editing the Neo field and I click publish before the autosave is complete, the publish will take very long time and even gateway time out. This ...
user avatar
  • 437
0 votes
0 answers
52 views

Split categories by levels / List categories merged by name

I have a scenario where I need category levels (4 levels) split in different sections of the page, also some categories have the same name, I explain: I need to list entries based on a category group ...
user avatar
0 votes
1 answer
56 views

Commerce search: return products containing keywords in related entries' fields

Craft CMS 3.6.11.2 / Commerce 3.2.17.4 We have a Stores structure section that contains fields (searchable) such as phone, address, etc. These Stores are assigned as Entries (searchable, max of 1) to ...
user avatar
  • 621
0 votes
0 answers
150 views

Search Entries by Post Date

Is there a way to direct Craft to include entry.postDate in the search? I'm using a simple query to search entries. {% set entries = craft.entries.section('mySection').search('*' ~ query ~ '*').limit(...
user avatar
4 votes
1 answer
79 views

Modified A-Z grouping

I'm trying to output the alphabet where certain letters are enabled/clickable based on whether any entries from a specific section start with that letter. Here's the UI: Getting the A-Z is easy ...
user avatar
  • 299
1 vote
1 answer
52 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, ...
user avatar
1 vote
4 answers
59 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 ...
user avatar
  • 23
1 vote
1 answer
39 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 ...
user avatar
  • 6,030
1 vote
1 answer
149 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
user avatar
2 votes
3 answers
237 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 =...
user avatar
  • 155
2 votes
2 answers
64 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 ...
user avatar
  • 487
2 votes
1 answer
101 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 ...
user avatar
  • 155
0 votes
0 answers
26 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 ...
user avatar
  • 213
1 vote
1 answer
51 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 ...
user avatar
  • 132
1 vote
1 answer
23 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, ...
user avatar

1
2 3 4 5
20