Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
2 Cleaned up title and question
source | link

how How can I display a "single entry" with status = pending"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(params'mySection').status('pending') %}

But how do you display an entry with status "pending" on the "_entry" template?
In my case nothing displays?

I tested a solution with a custom date field. And it works fine... But as soon as I want to order by custom date, or create a years archive, etc. things get too complicated for my taste. Also in the backend dates are sorted by pubDate, so I thought switching to pubDate would be better, but now I am stuck with displaying single entries in the future.

Any help appreciated!
Stefan

how can I display a "single entry" with status = pending

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(params).status('pending') %}

But how do you display an entry with status "pending" on the "_entry" template?
In my case nothing displays?

I tested a solution with a custom date field. And it works fine... But as soon as I want to order by custom date, or create a years archive, etc. things get too complicated for my taste. Also in the backend dates are sorted by pubDate, so I thought switching to pubDate would be better, but now I am stuck with displaying single entries in the future.

Any help appreciated!
Stefan

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 display an entry with status "pending" on the "_entry" template?
In my case nothing displays?

1
source | link

how can I display a "single entry" with status = pending

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(params).status('pending') %}

But how do you display an entry with status "pending" on the "_entry" template?
In my case nothing displays?

I tested a solution with a custom date field. And it works fine... But as soon as I want to order by custom date, or create a years archive, etc. things get too complicated for my taste. Also in the backend dates are sorted by pubDate, so I thought switching to pubDate would be better, but now I am stuck with displaying single entries in the future.

Any help appreciated!
Stefan