Drupal自定义CCK字段与多个子字段 [英] Drupal Custom CCK field with multiple child fields

查看:121
本文介绍了Drupal自定义CCK字段与多个子字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法创建一个可以具有多个值的复合字段,每个值都有另一组复合值?

Is there a way of creating a composite field that can have multiple values, with each value having another group of composite values?

例如。我们想要结束这个结构:

E.g. we want to have this structure at the end:


  • 组1(无限数量的组)


    • 儿童字段(每组不限子女)

    • 子字段

    • ...


    • 子字段

    • 儿童字段

    • ...

    对于定义CCK字段的自定义模块,这可能是可能的吗?如果是这样,有人可以推动我正确的方向吗?

    Is this possible at all for a custom module that defines a CCK field? If so, can someone push me in the right direction?

    推荐答案

    这是一个非常知道和辩论的问题在drupal世界。

    this is a very know and debated issue in the drupal world.

    此功能称为cckmultigroup,它看起来很难实现。
    在drupal论坛有很多帖子关于这个,我建议你从这里开始:

    this feature is called cck "multigroup" and it looks it's pretty difficult to implement. there are a lot of posts in the drupal forum about this, i suggest you to start here:

    http://drupal.org/node/494100

    这是一种隐藏功能在cck模块。查看模块目录,您将在此找到说明:

    it's a kind of "hidden" feature in the cck module. looking in the module directory, you will find instructions here:

    cck / modules / content_multigroup / README.txt

    编辑:多组模块上的正在进行的工作已经转移到实验性的
    CCK 3.0分支。

    cck/modules/content_multigroup/README.txt
    Ongoing work on the multigroup module has moved to the experimental CCK 3.0 branch.

    在此期间,您可以尝试使用 flexifield 模块
    (但它有点黑客,我不会在生产中使用它)

    in the meantime you can try to deal with it using the flexifield module (but it's kinda hackish, i won't use it in production)

    这篇关于Drupal自定义CCK字段与多个子字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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