Questions tagged [postdate]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10
votes
1answer
636 views

How can I cache a list of entries with pending postDates and have it automatically invalidate the cache appropriately?

I have a listing page of entries, some of which may have future-dated postDates. I want to cache the output, but only until one of the pending entries goes live.
6
votes
2answers
993 views

How can I display a “pending” entry in my “_entry” template?

I have an event site with dates in the future and past. I know how to display future entries as a listing: {% set entries = craft.entries.section('mySection').status('pending') %} But how do you ...
3
votes
1answer
1k views

How to filter entries by month and year?

I'm taking the month and year from parameters in the url like this... {% set month = craft.request.getParam('month') %} {% set year = craft.request.getParam('year') %} The url would look like this: ...
4
votes
2answers
992 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 ...
1
vote
1answer
103 views

Get categories ordered by the associated entries' postDate

I'm looking to show recent categories ordered by their associated entries' postDate. Is this possible? I don't want to list the entries within the category I simply want to list 4 categories that ...
4
votes
1answer
338 views

How to only show entries older than 12 months

I want to build an archive template where only entries older than 12 months show up. Is there an clean and easy way to do so? I only have strange calculations in mind. Something like this would be ...
3
votes
2answers
315 views

Using user-selectable timezones to show localized post dates

In my user profiles, I have a text field where the user's timezone is set, in the standard America/New_York format. Craft's timezone is set to New York, and the server's timezone is set to UTC. I'm ...