Part of the Entity ecosystem · 306 projects
This module provides a configurable field formatter for entity reference fields that allows you to control the number of referenced entities displayed. It offers an AJAX-powered "Load More" link to reveal additional referenced entities inline, improving user experience on pages with many references.
ABOUT
Entity Reference Ajax Formatter provides a new configurable field formatter for entity reference fields. This formatter lets you select how many entities to render as well as providing some extra sorting options for display only. However the standout feature is an AJAX enabled Load More link. This lets you initially load say 3 references and then if the user wants to see more, click the link and display more inline.
The widget has the same option of selecting the desired view mode to render the entities with and provides 4 extra settings:
Number(6): Number of entities to render to start with.Sort(Default): Provides a few extra sorting options that only affects this view mode.Load More(FALSE): Provide an AJAX link to load more referenced entities.Max(0): Maximum number to render. 0 is all entities referenced by the field. (Only visible if Load More is selected.)
REQUIREMENTS
Drupal 10 is recommended - 8 is probably supported by no longer tested. Automatic tests for Drupal 9.5 and 10.x
INSTALLATION
Install as you would normally install a contributed Drupal module. See the install docs if required in the Drupal documentation for further information.
CONFIGURATION
Configuration can be set as normal for field formatters through the Field UI for example, for a entity reference field on the article node type, that would be on /admin/structure/types/manage/article/form-display.
CREDITS
Primarily developed as part of a North Studio project - thanks for the permission to release this back to the community. Major thanks to the rest of my team for code review, feedback and discussion.
FAQ
Any questions? Ask away on the issue queue or contact the maintainer Nick Dickinson-Wilde.
Ask your assistant about Entity Reference Ajax Formatter
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Entity ecosystem
Most installed first
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 2.0.2 | Stable | 8–11 | Oct 22, 2024 |