Patch (to be ported)
Project:
Content Taxonomy
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
25 Feb 2010 at 13:08 UTC
Updated:
26 Mar 2012 at 22:02 UTC
Jump to comment: Most recent file
Comments
Comment #1
JoeMcGuire commentedQuick update. Appears to require the key when building the taxonomy array
Comment #2
JoeMcGuire commentedI've made a patch for snippet above. Tested and works would be good to get pushed through
Comment #3
floretan commentedThe patch still applies cleanly. I tested it with a complex content type making use of various content_taxonomy fields and it seems to be working fine. The only thing missing is when using the hierarchical_select widget with the "save term lineage" or "force users to choose from the last level" options set. The attached patch adds support for these two options allowing to generate a consistent structure, which makes the hook implementation look like this:
Comment #4
floretan commentedDue to the weird way the CCK - Devel Generate integration works (see comment at top of content.devel.inc), the random fields are generated multiple times. This doesn't usually have side effects besides wasting CPU cycles, but when we have a content_taxonomy field that also saves values to the taxonomy table, we end up with way too many values in there (the values of the field itself are overridden each time). This updated patch fixes this problem by checking for the existence of field values.
Comment #5
aaronbaumanpatch in #4 works great for me on a site with multiple content taxonomy fields, some shared between content types.
Comment #6
rhymeswithcamera commentedThe patch in #4 worked great for me too with multiple, shared CT fields.
Comment #7
blackspiraldancer commentedThe patch in #4 also worked for me. What about including it in the next dev build?
Comment #8
he0x410 commentedOk.
Comment #9
blackspiraldancer commented+1 works beautifully
Comment #10
hefox commentedJust an update so it'll add more than 1 value if it's a multi field