Download the PHP package internetztube/craft-element-relations without Composer
On this page you can find all versions of the php package internetztube/craft-element-relations. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download internetztube/craft-element-relations
More information about internetztube/craft-element-relations
Files in internetztube/craft-element-relations
Package craft-element-relations
Short Description Shows all relations of an element.
License MIT
Informations about the package craft-element-relations
Element Relations Plugin for Craft CMS 4.x and 5.x
This plugin shows all relations of an element. For example, where an asset, entry or any other element is linked.
Feature Requests are welcome!
Requirements
This plugin requires Craft CMS 4.0.0 or 5.0.0 later.
For Craft CMS 4: When using SEOmatic: MySQL 8.0.17+, MariaDB 10.4.6+, or PostgreSQL 13+ is required.
Installation
To install this plugin, follow these steps:
- Install with Composer via
composer require internetztube/craft-element-relations
- Install plugin in the Craft Control Panel under Settings > Plugins
You can also install this plugin via the Plugin Store in the Craft Control Panel.
Support
As a basis the relations table is used. This means that any field that stores relations in the relations table will work out of the box.
- Entries, Assets, Categories, Globals, Users, Products, ...
- Matrix
- Neo
- SuperTable
- User Photo
- SEOmatic
- Redactor
- CkEditor
- Hyper
- LinkIt
- TypedLinkField
- Formie
... and many more.
Usage
GraphQL
The Element Relations field exposes its data in GraphQL. Query the field by its handle to
access counts, usage flags, and related elements. Below is a minimal example fetching usage
information for a field named relationsField
on an entry:
Twig
Obtain a RelationsModel
instance from any element’s relations field, then use its methods to inspect usage.
Is in use?
Elements
Elements Iterator
Sites
Special / SEOmatic
Screenshots
Asset Overview
Asset detail
Create Field
Add to Field Layout
Issues
Please report any issues you find to the Issues page.
Brought to you by Frederic Koeberl