Hi all,

I was a drupal user a few years ago, switched to wordpress for a while, now I come back to Drupal family!

I have a package shipping store and want to set up a website so that my clients can register their packages when they come to my store to ship them.

I will create two types of nodes:

#1: Package recipient (Child node type): its fields include Name, phone number, address, ID code, ID photo (required by foreign custom).
I may use some modules such as Automatic Entity Label to create standardized node title: phone number Name, for example: '9171234567 David Anthony'.

There is also a 'Parcel' field referring (unliminited) to the Parcel node as described below

#2. Parcel (Parent node type): Its fields include a set of fields for sender, parcel content, weight, fee......There is a 'recipient' reference entity text field referring (limited by 1) to the node type #1 Package Recipient.

In this way, one recipient refers to multiple parcels, and one parcel refers to one recipient.

I will not let the client create recipient node directly. Instead, they will fill in web form to create parcel nodes. When they fill in the recipient fields of the parcel node, they just type in the phone number and name, the Ajax search will show the recipient for selection if he/she is in the system. If the recipient is not in the system, the client click a button beside to show an Ajax inline form and fill in it to create a new recipient node. Then the client select the newly created recipient node.

My questions are:
(1) How to add Ajax inline form to create the child node when creating the parent node?
(2) I hope to create a views for tabular display parcel nodes, each row corresponding to one parcel. Within each row, the fields of its child recipient node are also displayed in the row, like pseudo-fields (columns) of the parcel node. In this way, I can export the views table to Excel file, and each row of the Excel contains the information of sender, recipient,......Is this possible to implement?

Thank you very much for your suggestions!

Derek

Comments

VM’s picture