Need help in 2 level fields in CCK

Events happening in the community are now at Drupal community events on www.drupal.org.
tejaspmehta's picture

Hello Everyone,

I am using D7 to create a basic catalog site and stuck at one point. I have following flow.

Category
Sub Category
Product.

Now with help of CCK module, i have created all 3 types of content types. Sub Category has Node Reference for Category and it works fine. Now in Product content type what i need is when i select Category (which is node reference field) then automatically related Sub Category should be listed. Can anyone let me know how to do this with available modules ?

Thank you
Tejas Mehta

Comments

hierarchical select

Mandakini_Kumari's picture

You can use "Hierarchical Select" or "Hierarchical Select Node Reference" module Its good for for category and subcategory

Mandakini Kumari

Hi, Thank you for your quick

tejaspmehta's picture

Hi,

Thank you for your quick response. "Hierarchical Select" is taxonomy based. I have to define / work with CCK only. Also "Hierarchical Select Node Reference" is not D7 compatible. Any other option for this ? Custom module help will be also helpful although it is last option.

Thank you

Hello, Somehow i have figured

tejaspmehta's picture

Hello,

Somehow i have figured out that with help of view, we can use output of views in cck as a field. I have tried it and got half success on it. I have opened new discussion at http://groups.drupal.org/node/169514.

Thank you
Tejas Mehta

India

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: