arfaram/ibexa-location-relationlist-fieldtype

Add location fieldtype to Ibexa 4.x

1.0.2 2023-07-14 22:32 UTC

This package is auto-updated.

Last update: 2024-11-15 01:46:17 UTC


README

GitHub tag (latest SemVer) Downloads License

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 %}

Screenshots