Can't filter by linked entries in multisite setup
維護者通常 1 天內回覆
@jasonvarga 已經在處理了。
開始於 2025年3月18日。
評估
這個 Issue 還沒有評估資料。
描述
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 called shows.
This tag works fine on the default locale, but it shows no results on all other locales.
{{ collection from="shows" :production:is="id" sort="show_date:asc" }}
{{ if no_results }}
no results
{{ else }}
{{ title }}
{{/if }}
{{ /collection }}
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
- Add collection productions
- Add collection shows with an entry field where you set max items to 1 and the collection to
productions - create a template with the collection tag from above
- create at least a second locale
- everything is working fine on the default locale, but not on all other locales
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):
- Fresh install from
statamic/statamic
- 主要語言
- PHP
- 星號
- 4.9k
- 分支
- 647
- 平均合併
- 1 天 45 分鐘
- 30 天內合併 PR
- 221
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
statamic/cms 的其他 Issue
-
forms ui
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
accessibility
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆
-
antlers
難度 2/5 1-3 小時 新手友好度 66/100
維護者通常 1 天內回覆
-
Nav: link to the site root with an anchor (/#section) gets is_parent on every page可能已有人在做 @duncanmcclean 今天認領。 未關閉navigations
難度 2/5 1-3 小時 新手友好度 35/100
維護者通常 1 天內回覆
-
Multiple Choice and Checkboxes no longer offer "Inline", but the default views still use it可能已有人在做 @duncanmcclean 今天認領。 未關閉forms
難度 4/5 3-5 天 新手友好度 35/100
維護者通常 1 天內回覆
相似的 Issue
-
sync-en
難度 1/5 1 小時以內 新手友好度 86/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 83/100
taskforcesh/bullmq#5238 ·
維護者通常 1 天內回覆
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects it可能已有人在做 @bfs2021 今天認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
Automattic/jetpack#55517 ·
維護者通常 1 天內回覆