Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Publish_date not working?

Started by Muut Archive 10 years ago · 4 replies · 625 views
10 years ago

Hello,
according to this page an item can be scheduled using the publish_date option. I have created an item with the following header :

YAML
title: 'Projet Jukidbox, bilan'
published: true
date: 10/10/2016 08:00
publish_date: 10/10/2016 08:00
taxonomy:
    category:
        - jukidbox
    tag:
        - jukidbox
        - bilan
summary:
    enabled: '1'
    format: short
author: Sylvain

and at the moment the item is displaying on my blog although, from what I understand it should not until the 10th of October. I have tried two different themes and both are acting the same way. Am I missing something ?

Thanks,
Sylvain

10 years ago

Maybe remove 'published: true'? Not sure though...

10 years ago

Yeah. You can't set the published flag if you want Grav to calculate it automatically.

10 years ago

Thanks paulhibbitts and Perlkönig I had assumed that published: true was combined by Grav with the publish_date but not, you have to remove it if you want grav to use it. Seems to work with your suggestion, thanks !

10 years ago

Correct published: true is a an all powerful override to force publication or unpubliication as the case may be.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1359 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2957 9 years ago
Archive · by Muut Archive, 9 years ago
3 1121 9 years ago