Skip to content

arfaram/ibexa-location-relationlist-fieldtype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This Ibexa dxp v.4.x bundle allow developer to add relation to location instead of content

Resources

License

Stars

Watchers

Forks

Packages

No packages published