Replies: 1 comment
-
This would definitely work for our use cases, and would be more flexible than being able to insert matrix entries into other entries (which causes confusion over who/where the 'parent' is and should be). It also allows content authors to not know that they will be re-using content when they initially create it, but allow them to pull it out for re-use later. FYI the link to Justin Holt's page didn't work for me, but I was able to find his presentation video here: https://craftcms.com/events/dot-all-2022/sessions/using-entries-and-relationships-as-a-content-builder-system It's possible it could get problematic once a lot of entry instances are created. For example, we build knowledge bases and user manuals, and the number of instances of the "warning" callout is quite a lot, at least a couple in every manual. It doesn't get updated very often, but there are cases where the name of a product changes, etc, and it would have to updates all of those instances across the entire database. Embedded vs linked entries is, thus, perhaps, a philosophical question. |
Beta Was this translation helpful? Give feedback.
-
While contemplating 16199, I was thinking that there must be a better way to handle global blocks (and global content in general), a topic that has been broadly discussed in Discord, with no globaly (pun intented) accepted solution.
Before Craft 5, a decent approach was Justin Holts' "Using Entries and Relationships as a content builder system".
Currently, my personally preffered solution is to use a "global blocks" section and use an entries field inside a matrix entry to fetch global blocks (entries) as described in my comment. Essentially this is a mix of the new nested Matrix and Justin's method of global entries.
While this works and is flexible, it still has problems:
After some thinking I have a proposal to add the ability for matrix fields to have - in addition to blocks (nested entries) - entry instances:
Benefits:
One last thing: There's no reason entry instances should only be used inside Matrix, that's just a made-up limitation. For example "Master entries" could be used as "Template entries" for any new entry, in any section, and have the same pushing/pulling capabilities.
Thanks for reading this, hope it makes sense!
Beta Was this translation helpful? Give feedback.
All reactions