Solved Templates

Articles with end publish date showing as 'expired'

Asked by Alison 4 years ago Last activity 2 years ago

Hi

I just noticed that when I set a 'Finish Publishing' date on an article that is in the future the main article page shows the 'Expired' notice to everyone, even though the article has not expired.

Please see this page for an example - the Finish Publishing date is set to 2022-03-23 17:13:28
https://www.walc.org.uk/news/vacancies/bickenhill-marston-green-deputy-clerk

Please help as this is obvisoulsy confusing for our users.
Thanks
Alison

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff

Hi Alison,

as temporray solution use this

.article-header .badge.bg-warning.text-dark {display: none; visibility: hidden;}

7 more replies

Toufiq Senior Staff

Hi there,

Thanks for contacting us. Sorry for the inconvenience. Please create the issue on my site and let me know.

-Thanks

Alison Asked this

Anything ???

I am still waiting for a solution please

Toufiq Senior Staff

Already i have added our working board. I hope team will fix it soon. Thanks

Christian GRENIER

Hi

Soluce:

In your template, modify /templates/your_templates/html/com_content/article/default.php

OR (if this file doesn't exists)

In Shaper Helix Ultimate, modify /plugins/system/helixultimate/overrides/com_content/article_default.php

Lg50 error:

  • : !isnull($this->item->publishdown) && $this->item->publishdown > $currentDate;*

    Replace:

  • : !isnull($this->item->publishdown) && $this->item->publishdown < Factory::getDate();*

Bye

Toufiq Senior Staff

We will release it soon. Thanks

AJones

Hi......I've got this problem......can anybody advise?

Log in to reply.