Drupal nested / complex / sub content types

ぃ、小莉子 提交于 2019-12-11 17:56:01

问题


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.

  1. Create a content type called CV.
  2. Add a field_collection field to CV called education and allow unlimited entries.
  3. Edit the education field_collection item and add a date field and a text field.
  4. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!