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.
Hi,
i'm using CNR and EVA for a restaurant site.
I set it up so the editor can create a new "menu" node, pick from a list of node referenced "dishes", and so publishing a custom menu without touching the views UI.
I packed it all in a feature, but the problem is that CNR correspondence is not included.
Do you have a solution for this?
Thank you
Simone
Comment | File | Size | Author |
---|---|---|---|
#18 | cnr-backport_exportables_patch-1213898-18.patch | 6.41 KB | ergonlogic |
#17 | cnr-backport_exportables_patch-1213898-17.patch | 6.41 KB | ergonlogic |
#10 | features-integration-1213898-10.patch | 4.55 KB | bforchhammer |
#4 | features_integration-1213898-4.patch | 1.37 KB | Frippuz |
Comments
Comment #1
restyler CreditAttribution: restyler commented+1 for feature integration. I think this can easily be achieved by exposing cnr table to ctools exportable http://drupal.org/node/928026
Comment #2
DamienMcKennaSubscribe.
Comment #3
czigor CreditAttribution: czigor commentedIt's in the dev, please test. Might need to disable and enable the module (but to uninstall definetely not).
Comment #4
Frippuz CreditAttribution: Frippuz commentedI get the error:
Skipping the presets part but to make it work the following is needed:
- a couple of new lines in the install file
- a ctools plugin api hook
Patch is provided.
Exporting doesn't work without these.
Comment #5
czigor CreditAttribution: czigor commentedSorry, my bad. Thanks for the patch, it's committed.
Comment #6
kalabroUnfortunately I can't see how it works. I've created feature with one enabled CNR preset but all what it done is deleting record from CNR table.
Ctools 7.x-1.0-rc1
CNR 7.x-4.x-dev
Comment #7
Frippuz CreditAttribution: Frippuz commentedThe values are exported to the feature. Perhaps there is something wrong with the export making it impossible to import.
I'll better take a look at it one more time then :-)
Comment #8
kalabroSo maybe status is not fixed?
Comment #9
bforchhammer CreditAttribution: bforchhammer commentedI can confirm that this isn't working properly. CNR settings are exported to the feature fine, but when "reverting" the feature it simply deletes all settings...
The ways ctools exportables work, the "deleting settings from the database" part is probably fine, if the module loads settings from code instead. Maybe that part is missing?
Comment #10
bforchhammer CreditAttribution: bforchhammer commentedAttached patch moves all configuration-related loading/saving over to ctools. This fixes feature reverting etc. for me.
Comment #11
Matthew Davidson CreditAttribution: Matthew Davidson commentedWorks for me so far. Thanks.
Comment #12
czigor CreditAttribution: czigor commentedCommitted, thanks!
Comment #13
bforchhammer CreditAttribution: bforchhammer commentedGreat, thank you!
Comment #14
bforchhammer CreditAttribution: bforchhammer commentedDidn't mean to change the status.
Comment #16
ergonlogicIt would be great to see features support in the 6.x branch :)
Comment #17
ergonlogicThe attached patch works for me.
Comment #18
ergonlogicFixed whitespace error