Hello Community,
I am not sure if this is a correct cck project to ask my question. Please correct me if I am wrong.
I have created content types using cck. I have used Node Reference select options. I am now looking to create dropdown lists with a list of sub category of options.
That is currently what we have is we refer to a node and a dropdown list that lists all the title fetched from node. Now what I want is that titles be in some fixed category and when we refer to the node we get titles with their parent category also. Such that each category may have multiple content items in that.
Thus what I want is something like following in my dropdown list:
Category1
---------Item1
---------Item2
---------Item3
Category2
---------Item4
---------Item5
---------Item6
Category3
---------Item1
Can someone give me some idea that how can I do this?
Thanks.
Comments
Comment #1
manishaneja commentedNo Resposes. Can someone please give me an idea?
Is my query clear enough?
Comment #2
manishaneja commentedComment #3
jcfiala commentedNo, I'm sorry, this has nothing to do with the dme module and it's not even a bug - it might be a feature request. You want http://drupal.org/project/cck.
Comment #4
manishaneja commentedThanks jcfiala, for your direction. I am still not clear that to which of the CCK projects, I should ask this and this is really a feature request, but I have found a way to do this. I am not very sure that whether this is the best way to do this?
So, What I needed was I had to show my Select field options as parent and child as explained above. I was previously using CCK Node reference for this till I just needed to refer only the titles (as parent) from other nodes.
The solution I found to my problem is to use text field of Select type and provide the options with titles and their children from Allowed Values List using PHP Code.
I am still to implement this completely to my application, but I think this will sove my problem.
Thanks.
Comment #5
electricmonk commentedThis is also not the correct module... try Hierarchical Select
Comment #6
manishaneja commentedThanks, I will just check if this can be done with Hierarchical Select and then will post my comments and queries.
Comment #7
electricmonk commentedright, but not here. This is not the correct issue queue.
Comment #8
manishaneja commented