Open goellner opened 3 years ago
I went ahead and set up a demo repo for this bug: https://github.com/goellner/statamic-relations
On the movies detail page, it works in the default locale en
but not in the second one de
.
Working here: http://statamic-relations.test/movies/lord-of-the-rings Not working here: http://statamic-relations.test/de/filme/lord-of-the-rings
Is there any update on this or a workaround? We ran into the same today and our current workaround would be to create custom tags for the collection listings.
Any insights would be valuable :)
@jasonvarga Any update about this issue? It is still relevant in version 5.
Unfortunatley, I don't have a fix for this.
However, I've created a new example repo on Statamic 5, using @goellner's example, for whenever we get around to looking into this: https://github.com/duncanmcclean/cms-3528
+1
When using an entries field to filter the results in a collection tag, it does not work in a multisite setup.
Example:
A collection shows with an entries field called
productions
, where the user selects one entry from another collection calledshows
.This tag works fine on the default locale, but it shows
no results
on all other locales.It looks like the entries have different ids on all locales. The linked production is not translatable on all other locales, so it only has to be set once.
How to Reproduce
productions
Extra Detail
This also applies when trying to do something like this:
{{ 'ef2da943-c556-4a0f-9d71-73b37bfad38c' | get:url }}
for hardcoded links in a template. This also only works on the default locale, because the entries have different ids. Question: why do the entries need different ids?Environment
Statamic 3.1.6 Pro Laravel 8.33.1 PHP 7.4.15 jonassiewertsen/statamic-livewire 2.5.0 spatie/statamic-responsive-images 2.5.3 statamic/seo-pro 2.1.5
Install method (choose one):
statamic/statamic