arfaram / ibexa-location-relationlist-fieldtype
为 Ibexa 4.x 添加位置字段类型
1.0.2
2023-07-14 22:32 UTC
Requires
- php: >=7.4
- ibexa/admin-ui: >=4.0
- ibexa/core: >=4.0
This package is auto-updated.
Last update: 2024-09-15 01:30:22 UTC
README
Ibexa 位置关系列表字段类型包
Ibexa 标准的 内容关系(多个)
字段类型始终提供所选内容的 主要 位置 ID,这可能会成为瓶颈,如果您需要在多站点设置中提供内容链接。此包提供了一个新的基于 UDW(通用发现小部件)当前内容选择的 位置关系列表(多个)
字段类型。前端提供的内容链接是站点访问感知的。
需求
Ibexa 4.x+
安装
composer require arfaram/ibexa-location-relationlist-fieldtype
- 在
bundles.php
中激活包
Ibexa\LocationRelationListFieldTypeBundle\IbexaLocationRelationListFieldTypeBundle::class => ['all' => true],
翻译
字段类型名称
如果新字段类型显示为 location.name
,则运行
php bin/console translation:extract en --config=ibexa_location_relation_list_fieldtype
用法
{% if not ibexa_field_is_empty( content, '<FIELD-TYPE-IDENTIFIER>' ) %}
{{ ibexa_render_field(content, '<FIELD-TYPE-IDENTIFIER>') }}
{% endif %}