问题
I am trying to create multi-user system for CV managing using Drupal.
The basic idea is:
- Each User has his own CV.
- Each CV has several predefined sections as Education, Work experience, etc.
- Each Section consists of unlimited {Dates range - Text} entries.
I've created two new content types - CV and Date_Range_Text but I cannot link them together, e.g. to make Date_Range_Text a complex/nested content type, used in the CV's sections entries.
Do you have any ideas?
Thanks.
回答1:
I would use the Field Collection module.
- Create a content type called CV.
- Add a field_collection field to CV called education and allow unlimited entries.
- Edit the education field_collection item and add a date field and a text field.
- Do the same for work experience and any other fields.
Now when someone creates a new CV they can add unlimited education items, each consisting of a date and some text.
来源:https://stackoverflow.com/questions/21174966/drupal-nested-complex-sub-content-types