Search
Other Articles Anywhere questions
Forum

Filter on custom field date

Rachel Walraven's Avatar Rachel Walraven
Hi,

I have a calender on a site. I filter the articles bij the event date (custom field) and the have to be bigger than now.
The code I used to use on J3 was datum=">now" where 'datum'is the name of the custom field.

In J4 this doesn't work anymore. I changed it to datum="date > now()" but this also doesn't work. older items are still showing.

What am I doing wrong?

Latest version fo both joomla and AA is installed.

With kind regards,
Rachel
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Rachel Walraven's Avatar Rachel Walraven
Intalled the latest dev version, but now nothing is loaded.

Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Try:
datum=">now()"
Or:
datum=">date('today')"
See: docs4.regularlabs.com/articlesanywhere/p...alues-relative-dates
Please post a rating at the Joomla! Extensions Directory
Rachel Walraven's Avatar Rachel Walraven
YES! that is it. Thank you!
Hitsch's Avatar Hitsch
Attention, it seems only to resolve the bugs with date an filter calculation.
We have the same problem: After Update to the version 14.2.0 the filter
sendedatum="date('today')
in
{articles category="17" include-child-categories="true" sendedatum="date('today')" ordering="sendedatum ASC"}
not works. The Release v14.3.0-dev2745717, resolve this problem but it creates a new: then, the filter
publish_up="date('today +1 day')
in combination with a condition
{articles category="59" include-child-categories="true" publish_up="date('today +1 day')"}
    {if 05-05-text}[05-05-text]{else}[05-05-beitrag]{/if}{if 05-05-wdh = 'ja'}{/if}{/articles}
does not works; it list all articles instead the articles defined with the filter. 🙁
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
regularlabs.com/development-releases

PS: this part in your code makes no sense:
{if 05-05-wdh = 'ja'}{/if}
Please post a rating at the Joomla! Extensions Directory
Hitsch's Avatar Hitsch
Thank you very much! It now works correctly again!

PS: Yes, we do: we have an Options Custom Field that can be set to yes/no; depending on what it says, the value of the ArticleField or the simple text field is used. Or am I misunderstanding you?
Peter van Westen's Avatar Peter van Westen ADMIN
I mean, there is nothing in between the if tags. But you might have html there or just stripped it for pasting here.

So I mean: this is pretty useless:
{if something}{/if}
Please post a rating at the Joomla! Extensions Directory
Hitsch's Avatar Hitsch
OK, thanks, Peter! I will do it like this. But first I'll wait for the publication of your AA update so that I can get the site working again as desired. Thank you for the Sunday work... 🙂
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription