arfaram / ibexa-location-relationlist-fieldtype
Add location fieldtype to Ibexa 4.x
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Type:ibexa-bundle
Requires
- php: >=7.4
- ibexa/admin-ui: >=4.0
- ibexa/core: >=4.0
This package is auto-updated.
Last update: 2024-11-15 01:46:17 UTC
README
Ibexa location relationlist fieldtype Bundle
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.
Requirement
Ibexa 4.x +
Installation
composer require arfaram/ibexa-location-relationlist-fieldtype
- Activate the Bundle in
bundles.php
Ibexa\LocationRelationListFieldTypeBundle\IbexaLocationRelationListFieldTypeBundle::class => ['all' => true],
Translation
fieldtype name
If the new fieldtype is shown as location.name
then run
php bin/console translation:extract en --config=ibexa_location_relation_list_fieldtype
Usage
{% if not ibexa_field_is_empty( content, '<FIELD-TYPE-IDENTIFIER>' ) %}
{{ ibexa_render_field(content, '<FIELD-TYPE-IDENTIFIER>') }}
{% endif %}