Closed (fixed)
Project:
Conditional Fields
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2009 at 21:03 UTC
Updated:
28 Sep 2014 at 13:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
peterpoe commentedThe latest version has content_copy compatibility!
Importing and exporting of conditional fields settings should work now!
Comment #2
peterpoe commentedPlease report here any issues with import/export.
KNOWN LIMITATIONS:
- General Conditional Fields options for individual content types (those found in the tab admin/content/node-type/TYPE_NAME/conditional) are not exported/imported
- The data is not checked: so use with care if you edit manually the exported data.
Comment #3
jim0203 commentedCool! That just seems to work when I export the custom content type, right?
Anyway, I'm now putting the feature to use in my other issue, http://drupal.org/node/453204.
Comment #5
loze commentedI cant seem to get this to work when importing fields.
Comment #6
peterpoe commented@loze: Could you share your exported data so that I can test? Thanks.
Comment #7
peterpoe commentedComment #8
phayes commentedI've successfully moved conditional fields when manually importing / exporting content-type definitions, however, packaging up a content-type as part of a feature as per the features module doesn't seem to keep conditional field settings.
I'm not sure if this is a conditional fields issue, or a features issue.
Cheers and thanks for the awsome module
Patrick
Comment #9
phayes commentedUpdating to reflect current status: Works when manually exporting / importing node types, but there is no features integration (http://drupal.org/project/features).
Comment #10
bjcool commentedsubscribe
Comment #11
batje commentedsubscribe
Comment #12
mani.atico commentedsubscribe
Comment #13
mani.atico commentedBuilt this rough patch. It's just an approach and needs some work and debugging, but I think it's a good start.
I also tried implementing ctools api, but I thought this was a better approach since no db tables modifications are needed.
Anyway, I think the folloowing issue should be solved to in order to have a complete features integration.
728004: Allow abitrary modules to alter the pipeline
Comment #14
mani.atico commentedThe patch is for 2.x-dev
Comment #15
pvhee commentedinterested in features compatibility as well, thx for the efforts!
Comment #16
franzI'm testing this. If I find anything wrong I'll add a comment.
Comment #17
mani.atico commentedActually, I think that solving issue http://drupal.org/node/784470 should fix features integration.
Comment #18
franzmani.atico, I tested the latest patch and it did exported correctly. What kind of issue is going on in exportability?
Comment #19
mani.atico commentedI've been working with patch #13 in a production site for a while and features are exported/imported correctly. Currently I haven't found any bugs either. The hook mentioned in #13 could be implemented to export conditional fields automatically when a node type is exported.
On the other hand, if the module was coded as suggested on the issue referenced on #17, conditional fields would be saved as field settings and no fetures integration code will be needed since data would be managed by cck.
Comment #20
phayes commented#728004: Allow abitrary modules to alter the pipeline: is now resolved. So we can go ahead and have this auto-appended to content-type exports.
Comment #21
phayes commented#17 is better in the long run, but it would require a more substantive re-write. #13 should be committed right now, as it gets features integration immediately and does not require any rewrite of anything.
Comment #22
phayes commentedComment #23
franzphayes, this issue you mentioned is not resolved yet. And how does it affect the current patch? I can't really understand what you want from here, commit as it is or rewrite so that settings are auto-appended to content-type exports?
Comment #24
phayes commentedThe issue is resolved, but is not closed.
However, you are correct, this issue does not affect the current patch. The current patch works well, but does not auto-append. I would recommend committing the patch now as is (it's ready, useful, and tested). We can work on the auto-append magic later.
Comment #25
franzClear as water now! =)
Comment #26
phayes commentedWhoops. Found a bug. It looks like with multiple feature reverts, conditional field settings don't replace eachother, but start adding up.
See attached image
Comment #27
peterpoe commentedReviewed, modified export render to user var_export, fixed bug mentioned in #26, and committed. Thanks to all!
Comment #29
brad.bulger commentedcan someone confirm if this is right:
features[conditional_fields][] = "our_content_type_name"to the info file, or some such step - they do not get exported as part of the content typethanks
Comment #30
sirkitree commentedHi, I'm looking for documentation on this as well but am not finding it. I did find, that once I installed the latest dev, cleared my cache, and tried to re-create my feature with the exported content type, that Conditional Fields was now an option in Edit Components dropdown:
This added
dependencies[] = "conditional_fields"andfeatures[conditional_fields][] = "article"to my .info file, and a new file called[modulename].features.conditional_fields.incComment #31
mstrelan commentedThis is not in 7.x is it?
Comment #32
franzPlease do not hijack the thread.
If the version was 6.x, it is not in 7.x
Comment #33
mstrelan commentedFine. New issue created at #1191248: Port features compatibility to 7.x-3.x. Maintainer can decide if he wants to close that as a dupe and use this thread instead.
Comment #34
franzsorry, mstrelan, I mistook your comment. Now I understand it's purpose to reopen the issue for D7 (if you had changed the sate of it would be clearer) =(
Comment #35
gateway69 commentedhmm just applied the patch which worked fine but now seeing these errors
Comment #36
aniket.mohite88 commentedThanks to kenorb's patch, available here
https://www.drupal.org/node/2210241
I was able to solve this.
Can export the conditional field settings (along with content-type & fields).
In my case the dependent is a Date field & dependee is a boolean field.
Conditional field 7.x-3.0-alpha1
features 7.x-2.2
Comment #37
Leeteq commented