Closed lightbringer93 closed 2 months ago
Hi @duncanmcclean do you have any updates on this? We need this for a big website project.
Hi @duncanmcclean do you have any updates on this? We need this for a big website project.
I'm not on the Statamic Team so I have no idea where this sits on their priority list. I'm just a community member with access to label issues.
Closing in favour of #3528.
Bug description
We have a collection of job categories so we can categorise our job ads. On the main jobs page, we would like to display all job categories with the number of vacancies in each category. For this we have created the following snippet.
The if Statement is there so that only those job categories are displayed which actually have job advertisements. This all works now on our first language. But as soon as we open this page in our second and third language, no buttons are displayed. Here is the preview link of our testing enviroment. https://staging.zahnarztzentrum.ch/jobs Apparently, the relationship is no longer resolved correctly in the other languages. The following code
{{ collection:count in="jobs" job_category:is="{ id }" }}
returns 0.How to reproduce
{{ collection:count in="jobs" job_category:is="{ id }" }}
add this code to template and call site on second languageLogs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
None
Additional details
No response