Ibexa standard Content relations (multiple)
fieldtype provides always the main location Id of selected contents which can be a bottleneck if you need to provide content links in multisites setup. This bundle provides a new Location relationList (multiple)
fieldtype based on current content selection in the UDW (Universal discovery widget). The content link provided in the frontend is siteaccess aware.
Ibexa 4.x +
composer require arfaram/ibexa-location-relationlist-fieldtype
- Activate the Bundle in
bundles.php
Ibexa\LocationRelationListFieldTypeBundle\IbexaLocationRelationListFieldTypeBundle::class => ['all' => true],
If the new fieldtype is shown as location.name
then run
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 %}