Drupal的嵌套/络合物/子内容类型 [英] Drupal nested / complex / sub content types

查看:151
本文介绍了Drupal的嵌套/络合物/子内容类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



基本思路是:



我想使用Drupal创建用于CV管理的多用户系统。

  • 每个用户都有自己的简历。

  • 每个简历都有几个预定义的部分,如教育,工作经验等。

  • 每个部分由无限的{日期范围 - 文本}条目组成。



我创建了两种新的内容类型 - 简历和Date_Range_Text,但我无法将它们链接在一起,例如使Date_Range_Text成为一个复杂/嵌套的内容类型,用于简历的章节条目。



你有什么想法吗?



谢谢。

解决方案

我会使用字段集合模块


  1. 创建名为CV的内容类型。

  2. 将一个field_collection字段添加到CV,称为教育,并允许无限制条目。

  3. 编辑教育field_collection项目并添加日期字段和文本字段。

  4. 对于工作经验和其他任何领域也一样。

新的简历,他们可以添加无限的教育项目,每个由日期和一些文本组成。


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.

解决方案

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.

这篇关于Drupal的嵌套/络合物/子内容类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆