Project:Corresponding node references
Version:6.x-4.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

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

Comments

#1

+1 for feature integration. I think this can easily be achieved by exposing cnr table to ctools exportable http://drupal.org/node/928026

#2

Subscribe.

#3

Status:active» fixed

It's in the dev, please test. Might need to disable and enable the module (but to uninstall definetely not).

#4

I get the error:

Notice: Undefined index: api in _ctools_export_get_defaults() (line 625 of /srv/www/mysite/web/profiles/myprofile/modules/ctools/includes/export.inc).

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.

AttachmentSize
features_integration-1213898-4.patch 1.37 KB

#5

Version:7.x-4.1» 7.x-4.x-dev

Sorry, my bad. Thanks for the patch, it's committed.

#6

Unfortunately 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

#7

The 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 :-)

#8

Status:fixed» needs work

So maybe status is not fixed?

#9

I 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?

#10

Status:needs work» needs review

Attached patch moves all configuration-related loading/saving over to ctools. This fixes feature reverting etc. for me.

AttachmentSize
features-integration-1213898-10.patch 4.55 KB

#11

Works for me so far. Thanks.

#12

Status:needs review» fixed

Committed, thanks!

#13

Status:fixed» needs work

Great, thank you!

#14

Status:needs work» fixed

Didn't mean to change the status.

#15

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#16

Version:7.x-4.x-dev» 6.x-4.x-dev
Component:Miscellaneous» Code
Status:closed (fixed)» patch (to be ported)

It would be great to see features support in the 6.x branch :)

#17

Status:patch (to be ported)» needs review

The attached patch works for me.

AttachmentSize
cnr-backport_exportables_patch-1213898-17.patch 6.41 KB

#18

Fixed whitespace error

AttachmentSize
cnr-backport_exportables_patch-1213898-18.patch 6.41 KB
nobody click here