In Drupal, how to handle the association of a field in general
Newly learned Drupal, in practice, encounter common problems:
Real needs:
Entities are products, each product has an attribute, called the product family.
For the moment, I'll do it in the following way:
1, the establishment of a taxonomy, add some terms, these terms is all the product line (series A, Series B, Series C ... )
2. Create a content type named "Product" with a field of "Product series", field type
Term Reference,widget is a taxonomy established in select List,vocabulary for 1
This enables the product to be categorized by series.
However, if I now need to change, the series also need to classify, that is, the product to classify two times: first, according to the series of large categories, followed by a series of their own classification. In this case, with the help of taxonomy is impossible to achieve, looked up some information, found that you can set the field Type directly as a list, and then in the settings of the list Allowed Values list box, you can use the form of Key|value to execute a drop-down list The content.
But if I want these things to be dynamic, rather than dead, then I need to use CCK to write PHP Code.
Ask:
1, there is no way not to write PHP code, direct configuration, to achieve such multi-level classification requirements?
2. What is the usual practice of this requirement in Drupal? Write code?
Thank you!
------Solution--------------------
Build a product family of content type, associated to the product, others by taxonomy classification
------Solution--------------------
Multilevel classification? Go to the Glossary settings and drag the hierarchy directly! You have to build 100 levels can ...
People
---man
----, handsome.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.