All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
90 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(...
2
votes
1answer
507 views

Targeting the first entry item

I'm using Craft 3 and have created a section (channel type) for my project entries. At the bottom of each project page I have my Prev and Next Project buttons. How do I target the first and last ...
2
votes
1answer
145 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 ...
3
votes
1answer
926 views

Filter entries by month

I'm trying to make a archive page for a blog sorted by months. I tried to consult the solution from Linking and showing archive by month, but I can't get it to work like it should. The code I have now ...
1
vote
1answer
43 views

Entries by non-contiguous postDate years

I'm trying to display and paginate entries by years, that aren't necessarily contiguous. {% set limitPerPage = 6 %} {% set eagerFields = [ 'title', 'press_release_name', '...
1
vote
1answer
486 views

Showing posts live during a date range

I've tried to follow a ton of other articles posted on Stackoverflow for showing posts between 2 dates. I just can't seem to get it working and I keep getting an error of: Call to a member function ...
2
votes
1answer
285 views

Setting Date from URL

I have a template, /calendar, which outputs a list of all entries from the events channel. If a user clicks a link for "July 2015", I want the same template to load showing only the events for July ...
1
vote
1answer
202 views

Show entry on certain date, regardless of year

A project I'm working on needs to show a daily reading depending on the date you access the page. I plan to create entries for each day of the year, and each year it will show the post for that day. ...
1
vote
1answer
452 views

Is it possible to remove an entry's Expiration Date?

Once I have given an entry an expiration date, is there any way to delete that date so that it never expires?
5
votes
2answers
584 views

How to set entries to auto-expire after certain # of days from post date?

Is there any way to set entries of an certain entry type to auto-expire after a certain number of days from the original post date?
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 ...
4
votes
4answers
285 views

No ordinary news post ordering

I'm trying to work out how I can order news posts by postDate, unless a lightswitch is toggled for a post, at which point it will use the dateUpdated to order that item. This is so a client can still ...
5
votes
2answers
1k views

Creating a date filtered archive template

I'm trying to create an archive list template that lists entries from a News or Blog Channel based on year/month/day combinations. However, I get no entries and can't see where I'm going wrong...I'm ...