Articles Always Expired When Date->publisdown Not Null - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Articles Always Expired When Date->publisdown Not Null

CG

Christian GRENIER

Helix Framework 3 years ago

Hi

Context:Joomla4+PHP 8.1+Helix Ultimate last version

Error with date->publishdown in templates (for me, Travus or ShaperHelixUltimate); When there is a date->publishdown, article is always expired.

File (template): /templates/travus/html/comcontent/article/default.php OR File (shaper_helixultimate): /plugins/system/helixultimate/ovverrides/com_content/article/default.php

Lg50:

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

Correction:

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

Please, give my 50$ :) (lol)

0
2 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #61592

Hi Christian,

Thanks a lot. I will buy a coffee (or pizza) from my own money after the war will over.

By now I will share fix with our team.

0
CG
Christian GRENIER
Accepted Answer
3 years ago #61600

If the war finish, you can keep coffee! it will be a present!

Salute from France.

0