Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Entity boxes are one of those things that skirt the line between configuration and content. Right now can export that there's an entity box exists, with it's delta and title, but that doesn't give you much.
Looked into features uuid, default content, etc. and none are any where to providing that.
Figured it'd be best if entity boxes exported field info with the exported box itself for simplicity sake. Course that isn't simple code cause it's content, meaning field collections, files, etc.
Comment | File | Size | Author |
---|---|---|---|
#10 | 2304797-entity-boxes-export-10.patch | 11.34 KB | hefox |
#9 | 2304797-entity-boxes-export-9.patch | 11.22 KB | hefox |
#8 | 2304797-entity-boxes-export-8.patch | 11.24 KB | hefox |
#7 | 2304797-entity-boxes-export-7.patch | 10.21 KB | hefox |
#6 | 2304797-entity-boxes-export-6.patch | 8.81 KB | hefox |
Comments
Comment #1
hefox CreditAttribution: hefox commentedHere is a patch. It supports file/image and field collection (along with most of the core fields outside of taxonomy terms/node references/etc.). It defiently needs more cleanup, more eyes, etc. I just want to get it somewhere else outside my computer :)
Comment #2
hefox CreditAttribution: hefox commentedNote: It depends on the patches in the two related issues, #2304795: Allow boxes plugin to customize their export/rendering and #1064340: Allow export of additional files/assets.
Comment #3
hefox CreditAttribution: hefox commentedthe patch...
Comment #4
hefox CreditAttribution: hefox commentedRemoving debug statements, clearing cache on install so entity box types exist
Comment #5
hefox CreditAttribution: hefox commentedAdding noderef support via defaultcontent
Comment #6
hefox CreditAttribution: hefox commentedNeed to use empty( instead of empt(, oops
Comment #7
hefox CreditAttribution: hefox commentedtaxonomy term support, yay.
Comment #8
hefox CreditAttribution: hefox commentedfeatures uuid stuff
Comment #9
hefox CreditAttribution: hefox commentedFixing an embarrassing use of the same variable name for different variables :(
Comment #10
hefox CreditAttribution: hefox commentedsigh, messed up node references.
*blush*
Comment #11
hefox CreditAttribution: hefox commentedtypo in folder name
sanitized values are sometimes being exported for field data.