Search
Other Articles Anywhere questions
Forum

if - else structure nog giving wanted output

Rachel Walraven's Avatar Rachel Walraven
Hi,
I have the following if/else structure:
 {if startdatum} [startdatum format='D d M Y']{else} voor onbepaalde tijd / permanent{/if}
Startdatum is a custom calender field. If this field is not set I would like to display the text. This has work, but now stopped working. Now it is showing the current date. I cannnot find what's wrong in the documentation.

What am I doing wrong?

With kind regards,
Rachel Walraven
Peter van Westen's Avatar Peter van Westen ADMIN
Check what this outputs:
[startdatum:value]

PS: What Joomla version are you using?
Please post a rating at the Joomla! Extensions Directory
Rachel Walraven's Avatar Rachel Walraven
Hi Peter,

The startdate gives eighter the filled in value of the date of the event or, when left empty it outputs todays date.

The site is on Joomla 4.4.5

With kind regards,
Rachel Walraven
Peter van Westen's Avatar Peter van Westen ADMIN
I guess so. I can't reproduce the issue on my setups...
Please post a rating at the Joomla! Extensions Directory
Rachel Walraven's Avatar Rachel Walraven
Strange thing is, no value is saved in the database for the empty fields.
When I add another calendar field. It does not output any value when nothing is set in the field.

Could this be a migration left over?
Peter van Westen's Avatar Peter van Westen ADMIN
So is it working correctly with 1 field and not with another?
Can you spot any other difference? Like time settings, default value, etc in the field?
Please post a rating at the Joomla! Extensions Directory
Rachel Walraven's Avatar Rachel Walraven
I could not find any differences. Not in the field settings nor in the database structure.
Peter van Westen's Avatar Peter van Westen ADMIN
So going by your info, I guess it is down to an issue in the fields. And not so much in Articles Anywhere.
If possible, try to recreate the date fields in question.
Please post a rating at the Joomla! Extensions Directory
Rachel Walraven's Avatar Rachel Walraven
When I use the field with core joomla and set place the field below the content, it works as expected. Nothing is shown when the field has not been filled.

Regards, Rachel
Peter van Westen's Avatar Peter van Westen ADMIN
Can you give me (super) admin and (s)ftp access so I can take a look?
And tell me on what url I can see/reproduce the issue.
You can use the 'Confidential information' button in the forum editor to hide sensitive information.
Please post a rating at the Joomla! Extensions Directory
Rachel Walraven's Avatar Rachel Walraven
Ha Peter,

Hierbij de gevraagde gegevens.

Confidential information:
(hidden)


Het probleem doet zich voor op de pagina: lezenisleuk.nl/agenda en dan bijvoorbeeld bij het artikel lezenisleuk.nl/agenda/de-eigenwijze-kind...van-annie-mg-schmidt

Thanks, 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
Hi Peter,

YES! This fixes the problem.

Thank you!!
Peter van Westen's Avatar Peter van Westen ADMIN
Ok, great 🙂
The fix will be included in the next release.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription