Version 3 is now out (for Craft 4. Craft 3 version 1.1.1) extending metadata capability from entries to all element types! Plugin name was accordingly changed from Entry Meta to Element Meta
This plugin adds the ability to save schemaless metadata to all element types and query by that data.
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:
- You now have a field in your section layout that does not semantically belong there.
- It can be accessed, modified and deleted from the control panel (granted only on dev environment).
- It is loaded when creating or editing a post, which can be easily tampered with from the developer console of the browser.
- It does not allow for ad-hoc data that could pertain to a single post or just some posts, without creating yet another field.
- It is saved to the
content
table, rather than the element's root table (e.gentries
), where it naturally belongs.
Entry 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 the element's root table (e.g entries
):
- Save metadata using dedicated methods on the element.
- Flexibly Query metadata (including nested structures) using the active record class.
- Data displayed on the sidebar along with Craft's metadata.
- Supports both MySQL and PostgreSQL
Price includes 1 year of updates.
$5/year per site for updates after that.
- Installation Instructions
To install this plugin, copy the command above to your terminal.
- Active Installs
- 12
- License
- Craft
- Last release
- November 21, 2022
- Activity (30 days)
- 0Closed Issues0Open Issues0Merged PRs0Open PRs