Closed (won't fix)
Project:
Content Construction Kit (CCK)
Version:
4.7.x-1.x-dev
Component:
General
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2006 at 21:02 UTC
Updated:
23 Jul 2008 at 21:24 UTC
Comments
Comment #1
yched commentedThe Activeselect module provides exactly the functionnality you need (a dropdown that triggers updates in the values of another drop-down)
But... the cck generated drop-downs are not aware of this, you'll have to code a bit...
I'd say develop a small module that will implement the hook_form_alter hook, in order to have the relevant cck-genereted select widgets use the activeselect function.
Might require a bit of trial and error, but undoubtedly doable :-)
Comment #2
sodani commentedOh gosh. I wish I knew how to do this.
Comment #3
karens commentedThere's an outstanding request to add something like this to the location module, and ultimately to the location views module. (Actually, we were just going to link the state options to the selected country, no plans to do anything with city.) If no one else does it, I plan to try to work on it when I have time, but that's not going to be right away. If you can wait until then either you might be able to location-enable your nodes and use the location module for this purpose, or use that as a model for developing something for cck.
Comment #4
sodani commentedThanks. The location module is certainly along the lines of what I'm looking for. However, I'm also trying to get non-location hierarchical tagging on my CCK nodes, where certain fields are dependent on others and it seems like it doesn't allow that.
For example, if you want your CCK nodes to be classified ads, and someone chooses "car", you would want to add other fields that are dependent on that, such as make, model, year, but not necessarily if they chose "painting".
Comment #5
coupet commentedExcellent feature to implement! status?
Comment #6
inforeto commentedCCK data can be used from any module, so perhaps this functionality belongs to views.
In any case, active select was made to create ajax select boxes, so perhaps this issue should be changed to "support active select directly in cck".
Comment #7
coupet commenteddependantDropdown
http://drupal.org/project/dependantDropdown
This modules adds a CCK type which defines a dropdown with a dependant value list upon the value of a different cck field
Comment #8
karens commentedThe dependentdropdown module looks like it could be interesting, but the project was created a month ago and no code was ever added to the repository.
Comment #9
hedb commentedI did load my code to the repository back then
I see now that i missed something,
maybe to create a first release? (how do i do that?)
i'll try to solve it.
Comment #10
karens commentedChanging title back
Comment #11
karens commentedActually this is a feature request.
Comment #12
dopry commentedand not in 4.7.x... or ever. this kind of functionality is advanced and outside the scope desired for the CCK module. Do it in contrib if you want it.