Hi,
Is it possible make visible or hide a modular page by its unpublished date?.
I've been trying to do it but I can't get it.
Anyone knows to do it?
Thanks.
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Solved by pamtbaau View solution
Hi,
Is it possible make visible or hide a modular page by its unpublished date?.
I've been trying to do it but I can't get it.
Anyone knows to do it?
Thanks.
@pmoreno, When variable unpublish_date is set in the frontmatter of a page, it should become 'un-published' automatically.
See https://learn.getgrav.org/16/content/headers#unpublish-date
Optional field, but can provide a date to automatically trigger un-publication. Valid values are any string date values that strtotime() supports.
What have you been trying?
Hi, @pamtbaau,
I don't know what happened, but I had marked the unpublished checkbox, however the page didn't hide.
Maybe it worked wrong because I set enable the Publis checkbox, or the cache enabled. I'm not sure.
Finally, it works fine now.
Thanks so much, again.
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 6 | 94 | 8 months ago | ||
| 10 | 184 | 1 year ago | ||
| 4 | 146 | 1 year ago | ||
| 3 | 60 | 1 year ago | ||
| 4 | 254 | 1 year ago |