Plugin screenshot thumbnail 1/2
Plugin screenshot thumbnail 2/2

This plugin adds the ability to save schemaless metadata to all element types and query by that data.

Settings Page

Why?

Sometimes you'll need to attach additional information to your element without creating a corresponding field in Craft. Common examples include saving an identifier of the element in another system, keeping track of post views, saving the gclid on a lead, or flagging an entry as seeded for later removal.

One option would be to create a read-only field on Craft using a plugin that allows for hidden/read-only field types. However, there are multiple cons to this approach:

  1. You now have a field in your section layout that does not semantically belong there.
  2. It can be accessed, modified and deleted from the control panel (granted only on dev environment).
  3. It is loaded when creating or editing an element, which can be easily tampered with from the developer console of the browser.
  4. It does not allow for ad-hoc data that could pertain to a single element or just some elements, without creating yet another field.
  5. It is saved to the content table, which is not its natural habitat.

Element Meta offers a more flexible, schemaless alternative, which by-passes the user-facing data structure and allows you to save metadata in JSON format directly to a designated table:

  • Save, retrieve, add and delete metadata using dedicated methods on the element.
  • Flexibly Query metadata (including nested structures)on the active record class, using an intuitive fluent syntax.
  • Data displayed on the sidebar along with Craft's metadata (optional).
  • Supports both MySQL and PostgreSQL

Price includes 1 year of updates.
$10/year per site for updates after that.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Active Installs
6
Version
4.1.0
License
Craft
Compatibility
Craft 3, Craft 4
Last release
January 26, 2024
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs