Patch Content Taxonomy as controller field
clemens.tolboom - April 24, 2008 - 15:24
| Project: | Conditional Fields |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | patch (code needs work) |
Description
Hi,
I have a patch to use content_taxanomy as a controller field.

#1
#2
I tested the patch. It seems to work fine on node edit, but on node view the controlled field is never visible even if triggered.
#3
That is because of #250710: Not all fields with valid conditions are displayed when viewing node ... patch is underways
#4
the following patch worked here:
you have to apply
http://drupal.org/node/250748#comment-819833
and
http://drupal.org/node/250710#comment-860312
#5
I've applied the three patches and it works fine, all the fields are showing even when using a taxonomy field controller, I think we should commit and release a beta version to keep track more easily of all the changed that were made recently??
Patchak
#6
subscribing
#7
Please commit this one too!!! ;)
#8
as a comment to this, i think it should be a patch in content taxonomy than making a patch to conditions fields
// The problem is that content taxonomy doesn't use '#value'
#9
This is great! Thank's for these patches, they are working just as needed (so far).
#10
@ dereine, so you think we should change the project for this issue ?? But does the patch needs to be redone to be working with content taxonomy ???
#11
Yes, these patches work for me also. Using the dev version of Content Taxonomay now includes the patch: http://drupal.org/node/250710#comment-860312
So the only patches to make this work are the two in this issue, in comment #1 and comment #4.
Here is a single unified patch of the two required patches against the dev version of this module.
#12
This patch does not seem to respect the 'Specify terms to show' in the Content Taxonomy Field window.
Aside from that, if your Vocabulary is enabled as a hierarchy, the patch will also ignore any child terms.
txcrew