Hello,

I have a content type named 'products' and every product have a unique vendor, so I want to add a field to the content type 'products' that allow me to chose the appropriate vendor from a list.

Is this possible without creating a custom module ? Can I create another content type 'vendors' and join the two content type ?

Thanks.

Comments

nevets’s picture

You can create a content type for vendors and use an entity reference field in products

bol3ez’s picture

thank you for replying, I didn't knew the entiy reference module

bol3ez’s picture

there is left one other thing,

I have an xml file that contain all products, I used simpleXML Object to loop in this file,
but my problem is how can I save the nodes products and vendors,
for example I have currencies as taxonomy term and the vendor name of every product, how can I tell drupal to save all these informations in the appropriate tables ....

I hope that I find the solution of this problem
thanks

nevets’s picture

Starting from XML there are at least these two possibilities, Feeds Xpath Parser (depends on Feeds) and xml2node<?