要通过添加另一个项目进行分组的 CCk 字段
我在 Drupal 6 中创建了一个新的内容类型,并使用 CCK 字段添加了字段,例如国家/地区、州和邮政编码。我创建了一个名为地址的组,它看起来像:
Address
--- 国家
--- 状态
--- Zip
现在我想在标签“地址”下方添加一个新项目,以便可以添加另一个地址。请帮我。有没有任何模块可以做到这一点?..它还应该有删除选项
EG:
地址
Country
State
Zip
地址
Country
State
Zip
+添加另一个地址-删除地址
抱歉我的英语不好
I created a new content type in Drupal 6 and added fields using CCK fields like country, state and zip code. I created a group named address so that it looks like:
Address
--- Country
--- State
--- Zip
Now I want a add new item below the label "Address" so that another address can be added. Please help me. Is there any module to do this?.. It should also have remove option
EG:
Address
Country
State
Zip
Address
Country
State
Zip
+Add another Address -Remove Address
Sorry for my poor english
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您不想使用 CCK 地址或位置模块,可以使用 CCK 的 3.x 分支来完成此操作。该分支有一个名为Multigroup的模块,它允许您将字段分组在一起,然后在整个组上添加另一个功能。
If you don't want to use the CCK Address or Location modules, you can accomplish this using the 3.x branch of CCK. This branch has a module called Multigroup, which allows you to group fields together, and then get the add another functionality on the entire group.
有些模块将为您创建字段并与 CCK 集成。我建议查看 位置模块 或 地址模块。
我没有使用过“地址”模块,但我知道“位置”模块将完全按照您的要求进行操作。您可以选择显示地址的哪些部分并允许添加/删除额外的地址。
There are modules that will create the fields for you and integrate with CCK. I would recommend looking at the Location module or the Addresses module.
I have not used the Addresses module, but I know that the Location module will do exactly what you want. You can choose which parts of the address to show and allow adding/removing extra addresses.