If you use AWS S3 to store files, you may try refreshing file metadata cache in S3 File System settings to resolve the Drupal 9 "source image not found while attempting to produce derivative image" error.
在Drupal 8 和 Drupal 9 的 twig 模板開發中,常常會需要輸出指定的field,本文列出常見類型的field取值方法,以便查詢。
1. 一般類型 General
Field typeHow to get valueNoteBoolean{{ content.field_name[0] }}
值為“On”或“Off”的labelBoolean{{ content.field_name['#items']