在 Drupal 7 中将现有内容类型设为另一种内容类型中的字段
我仍在努力学习 Drupal,但似乎找不到答案。
我创建了一个自定义内容类型。就我而言,它描述了投资房产(购买价格、租金收入等)。
我现在想要创建另外几个内容类型:费用和收入,用于跟踪适用于特定财产的任何费用或收入。
我不明白的是如何让用户选择费用或收入适用于哪个财产。也就是说,我想要一个用户可以选择属性的字段。
我是否需要编写一个模块来使该属性可用作字段?
提前致谢。
I'm still working my way up the learning curve for Drupal and I can't seem to find an answer.
I have created a custom content type. In my case, it describes an investment property (purchase price, rental income, etc).
I now want to create another couple content types: Expense and Income that will be used to track any expenses or income that apply to a particular property.
What I can't figure out is how to let the user choose which property an expense or income would apply to. That is, I want a field where the user can select the property.
Do I need to write a module that makes the property available as a field?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为参考文献模块可能会有所帮助。
http://drupal.org/project/references
我对此没有丰富的经验,尽管我我想我会指出你的方向。如果这是您所需要的,我相信其他比我更有经验的人会在您有更具体的问题时帮助您。
I think the references module might help.
http://drupal.org/project/references
I don't have extensive experience with it, although I thought I'd point you towards it. If it's what you need, I'm sure others with more experience than myself will chip in and help you out if you have more specific questions.