Tell us what you are trying to do?
I outputted a start/end datetime depending on conditional output inside a fields and text block.
I made this to show the start/end datetime in a natural way
"18.03.2021-18.03.2021" -> "18.03.2021"
"17.03.2021-18.03.2021" -> "17.-18.03.2021"
"17.02.2021-18.03.2021" -> "17.02.-18.03.2021"
"18.03.2021.-18.03.2022" -> "18.03.2021-18.03.22"
I know that my coditions are not perfect. But I need a conditional output where I can check if day, month and year of start/end datetime are equal or NOT equal
The problem seems to be coming from the Field and Texts block, however on a fresh site i'm not able to replicate the issue.
There is a workaround however, as you can add the contents in the fields and texts block to a classic editor block and this should cause the conditionals to start working again.
I'm currently checking on the installation where it works.
"The problem seems to be coming from the Field and Texts block, however on a fresh site i'm not able to replicate the issue."
Does that mean that the "if" for conditional output shows on your installation?
This screenshot is from a fresh wordpress install with just Toolset on it. Toolset Blocks 1.5.3, Toolset Types 3.4.10. (Just updated Blocks from 1.5.2 to 1.5.3)
The "if" for the conditional output does not show.
Yes that is correct, the if conditional works fine. What is happening on your site is that the date fields are being rendered into ASCII characters rather than the actual values of the field, see screenshot.
This is why it is not working. I'm still working through. What I will do is grab a copy of your test site, then update views on that test site to see if the issue occurs.
"Yes that is correct, the if conditional works fine"
Does the "if" button still appears in the block editor toolbar from a text & field block in your test installation?
Like I told you I made a fresh wp install with just blocks and types installed and the "if " button don't shows up.
Speaking with our 2nd tier supporters our Developers have removed the ability to add the conditionals inside the fields and text blocks due to issues that come up from the filters that process the data.
Currently the "if" buttons are disabled. In your case the workaround is to copy and paste your conditional text from the Fields and Text block into the classic block. From there the conditionals should now process fine.
I also saw that you have some custom css classes attached to the fields and text block, you may need to restyle this by adding the classic block into a container block and then add the classes to the container block.
I used an html block instead of the classic block, and yes that one works. Thx for that.
I hope that they'll bring back the functionality and the "if" button to the fields & text block, as I wouldn't know how to realise such features like the in the actual case using toolset blocks. Even you couldn't set up the condition I am using by the Conditional Output Editor directly, it was a great help to set up the basic construct of conditions and changing them manually to my special needs afterwards.
I read through the changelog trying to find the specific changes. Could you tell me in which Version this changes where made?
This was actually changed in version 1.5 of Blocks. Currently i'm unable to say when this issue will be resolved but for now you will need to continue using the Classic block.