开发者

Using Node Reference without popup?

开发者 https://www.devze.com 2023-01-06 18:40 出处:网络
I am using two content types company and Employee . I am using node reference here(Company -> Employee). Within the Company form , the Employee node comes as a pop开发者_开发问答up ,Employee form need

I am using two content types company and Employee . I am using node reference here(Company -> Employee). Within the Company form , the Employee node comes as a pop开发者_开发问答up ,Employee form need to bring the display and functionality to the company form and should keep the node reference. .


Unfortunately, embedding one form in another is nearly impossible in Drupal. That is due to its form-handling and node-handling system.

If you want such relationships, you often need to write a simple, small module that maintains relationships in the database, offers forms to insert/update them and ways to extend nodes with your relational behaviour.


Best I could suggest is an iFrame holding the employee form - but still it's not very elegant.

0

精彩评论

暂无评论...
验证码 换一张
取 消