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
1answer
781 views

How to get specific entries id

I am attempting to get a specific entries id from within a specific section. I have looked around, and clearly have not found anything yet. To clarify, lets say we have a section called "Stories", ...
1
vote
1answer
125 views

Using multiple Templates per section

I'm using this support article as a guide and I'm stuck on what I'm doing wrong. I have an "events" section, and I would like to use a different template for one the entries. I've created a new ...
0
votes
0answers
277 views

Get Entries from Section related to a category

I'm currently trying to get all entries which belong to a section which is related to that category. e.g. Category Brand Offer Offer belongs to a brand. Brand has a category field. {% set ...
1
vote
2answers
197 views

Search query: grouping and merging multiple searches

Is it possible to 'group' search logic in the craft.entries.search query? I need to do the following: [a OR b OR c] AND [d OR e] AND [x OR y OR z] Thanks!
0
votes
1answer
13 views

Page is Not listed in Backend

One of the pages in the menu header is called Order Online, which takes users to a separate website. I want to change the link where it takes users to but when I went to the backend of the site, the ...
0
votes
1answer
116 views

How can I use two different templates for a single entry?

I'm building a coursework site and have a Course section, who's entries will be courses containing work that the client will assign to users. I built in both the work itself (different "lessons" ...
2
votes
0answers
36 views

Carry over asset field content to other locales

I have a site with English and French locales. One of the fields we have assigned to our entries is an asset field. Currently when an admin adds a new entry, all the English content will carry over ...
1
vote
1answer
329 views

Re-Saving neccessary?

I have switched the field of the SEOmatic plugin to translateable. All the SEO Titles are taken from the entry title. After changing to translateable I can see the translated fields in the SEO Title ...
3
votes
1answer
395 views

Sort CP Entries by Category

I know it's possible, using modifyEntrySortableAttributes, to sort the CP entries table by a custom field, when that field is a number, string, date/time, or bool. Would it be possible to sort a CP ...
1
vote
1answer
42 views

How to limit navigation by entry type

I couldn't find this anywhere so I thought I would post the answer. How do you limit the output of a navigation element to a specific entry type. This question is explicitly for the navigation ...
2
votes
1answer
172 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
0answers
534 views

How can I filter with facets in algolia with nested structures?

I have a site that currently uses a structure where we have a parent entry and children under it. On the parent page we have entries that have been created with matrix blocks. The structure is as ...
1
vote
1answer
287 views

Entry within multiple sections

I'm trying to work out if the following is possible in Craft. Assuming I have a single entry, I want to theoretically tag it as a 'blog' and 'about', both of which are sections I want to then have ...
1
vote
0answers
40 views

chain of random entries based on relations

I'm developing a bio section for a client. Every bio is linked to another bio creating a chain of bios. The order of this chain should be random. The schema would be as following: Bios: Bio a, Bio b, ...
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
45 views

Get count of new entries since last visit

I'm relatively new to craft, but thanks to this board I am making great progress :-) But here is my first question, which is not answered in here: I would like to get the count of entries of a ...
1
vote
1answer
308 views

How to reference an entry field in a guest user form?

I'm new to Craft. I've been trying to wrap my head around how to design the concept of Events and Event Registrations. Currently I have both Events and Event Registrations as their own Sections as ...
3
votes
1answer
144 views

Find structure entries which parents relate to other entries

I want to select all children of all entries that fulfil specified relation parameter. I have tried this, but I think .isDescendantOf only supports single entry. Is this even possible? {% set ...
3
votes
1answer
2k views

Element API display entries by category

With v2 of the Element API plugin, I'm having issues with working out how to return entries that are in a particular category. I've got the slug in the API route but can't work out what the query ...
1
vote
0answers
36 views

Shortlist plugin item title not showing

I've been getting annoyed at one small problem I can't solve with the Craft Shortlist Plugin. It seems that I have got everything to work but no matter what I do, the {{ item.title }} just won't ...
3
votes
1answer
216 views

Find entries from related section after certain date

Does anyone know how to achieve the following in Twig with Craft 3: My sections locations and trainings. I want to find all the entries from locations which has a relation to trainings and a ...
1
vote
1answer
724 views

Why am I getting error: Object of class Craft\ElementCriteriaModel could not be converted to int

We just created an entry and hit save. When we go to the front end of site we get a popup error that reads: Object of class Craft\ElementCriteriaModel could not be converted to int What does ...
1
vote
1answer
140 views

Select query question

I am trying to do the following with craft.entries but I think it may not be possible without a plugin. I have 9 categories with related entries on all of them. I would like to get the latest ...
2
votes
1answer
400 views

Creating a new entry in a specific section

Let's say I created a section called, "Answers". In a custom plugin, I want to create an entry that should show up under the "Answers" tab in the CP entries page. $entry = new EntryModel(); // ...
2
votes
1answer
51 views

Excluding properties from returned ElementModel in plugin

We are building a React application for a client, where we are using Craft as the API/Backend. I am building the API as a custom Craft plugin, which will return specific JSON data to React, dependent ...
1
vote
1answer
1k views

Show Disabled Entries

I have a page on one of my sites which requires entries to show even if the entry is disabled, but just greyed out. Is there a way I can disable an entry and make it still show up on my webpage? I ...
1
vote
1answer
2k views

Entry URL Format

I'm currently trying to get my URL's to be like the following: category/brand/offer/ Category has a title Brand has a 'shortName' property. Offer has a title My plan is to have it so that it goes ...
1
vote
2answers
178 views

Get Related Entries and then filter those by specific category in url segment

Channels: Photographers Photos - entries field handle "photographers" - categories field handle "category" url structure where segment 2 is the photographer slug and segment 3 is the ...
2
votes
1answer
131 views

SEOmatic not merging fields from a related entry

I have a pretty specific set up: posts get created via rss feeds and images are not attached to the specific posts, so instead in the entry template I use an image from a related entry. When I try to ...
2
votes
1answer
996 views

Multisite Craft 3, different entries on different sites

Is it possible to show different entries on different subsites? Currently I can show different versions of the same entry (e.g. translations), but I want entry 1 to show on site 1, entry 2 on site 1, ...
1
vote
1answer
64 views

Include user information in html block

I need to pass the logged-in user's email address as a variable to a embedded javascript form. I think the easiest way for me to do this is to dynamically embed the user's email address in the embed ...
3
votes
3answers
644 views

Pagination with randomly ordered entries

I have a need to list a set of entries 9 at a time but with a random order. The pagination happens via Ajax, with each next set of 9 entries loaded onto the page when the user clicks the "See more" ...
2
votes
2answers
1k views

Loop through entries taking far too long to finish

I am attempting to loop through my "journalEntries" in order to find duplicates. For some reason, it is taking a very long time to finish and return a response to me. Last time I tested it, it took 12 ...
2
votes
1answer
53 views

Find entries with at least 1 image

How can I find entries with at least 1 image? {% set category = craft.categories.group('storyCategories').slug(catSlug).first() %} {% set params = { section : 'stories', order : 'postDate desc', ...
2
votes
2answers
256 views

How to Show the Total Word Count of an Entry?

Any way to show the total word count in real-time to authors while they are writing an entry that has multiple blocks? I don't need per-block word count ... I need total word count shown in real-...
2
votes
2answers
336 views

How do I display entries 1 by 1?

I need to display entries that contain an image, and a piece of text, on the home page of my website. When someone clicks 'next', I would like it to go to the next entry (by post date) and display ...
1
vote
2answers
334 views

Querying channel entries hits memory limit

We have a channel that has about 700 entries but is paginated with a limit of 30 entries. Our client is looking to add a button so users can print out all entries. One of our proposed solutions was to ...
4
votes
1answer
3k views

How to fetch entries from multiple sections

I have five separate sections with x number of entries each. I would like to render all the entries from all the sections on a single entry template page. Is there a way to do this ? I know we can set ...
2
votes
1answer
217 views

Displaying entries with pagination on a category page where the entry's last category in the array is the current category

I want to only display entries on the category page which is the last in the array of the entries category, so that it doesn't also show on parent category page. Let say these are my categories: ...
1
vote
1answer
86 views

Get entries which have content like '%findme%'

I am creating a more robust find and replace plugin which shows what is being replaced and where. I need to query for all entries(or content records?) where content is like '%findme%'. Should I ...
0
votes
0answers
28 views

What's wrong when entries appear again after save?

Entries should be live and say so in the CP, but they where gone in a listing in the frontend. But after saving entry by entry they appear again. What could be wrong?
0
votes
1answer
113 views

Disable “dynamic links” in rich text fields

When we're adding a "link > link to an entry" to a rich text field, this will result in a link to https://www.site.com/page#entry:3962:url and we understand what the purpose is of this additional #...
1
vote
0answers
83 views

revision entry is the same with saveEntry in plugin

I have made a plugin where I save a status of a related entry. I have enabled revisions in the section. But when I update the status entry, a new version is made with the newest content, but all the ...
1
vote
1answer
45 views

Specific word stops entry from saving

I've just migrated a craft site to a staging server from a local environment and have come across an odd bug I have no idea what's causing it. If I use the word "select" in a blog post, the entry ...
2
votes
1answer
117 views

CP search for entries by postDate?

Does the control panel search support postDate, expiryDate, dateCreated, dateUpdated? For a custom date field, the below will return all dates in October 2017: customDate:2017-10 But for entry ...
1
vote
1answer
626 views

Pass 'not' category.id to relatedTo in Craft

I have a search page that filters with these params: {% set results = craft.entries({ section: 'properties', price: range, search: query.location, relatedTo: status, order: ...
2
votes
1answer
1k views

Query entries between two values

I am trying to query entries (scripts) when a custom expiration date field is within a certain range. These questions/answers helped me get as far as I am, but I'm still stuck: Advanced query/filter ...
4
votes
1answer
1k views

Exporting Entry content

I really spend a lot of time searching for a solution to this problem. When I try using the Export plugin to export some entries with some Matrix fields and Neo fields for content, all that I can get ...
1
vote
1answer
38 views

In a large set of entries across multiple sections, how can I loop through each section type in the set?

I have a set of entries from multiple channels and I want to loop through each section type that is in the set. Something like {% set entries = craft.entries.search(query).order('score') %} {% for ...
2
votes
1answer
2k views

How to set title in layout template from content template

So, I'm using the standard template system that comes with craft, which has this code in it: <main {% if craft.request.getSegment(1) != "" %}id="content"{% endif %}{% if craft.request....

1
3 4
5
6 7
19