Could you clarify how to configure GUID mapping on project home page? Maybe with an example it could be easier for new users to get used to this module.
I don't know If I have done it right but in my test scenario I have two content types: Article and Person. Articles have an entity reference field which connects to Person. In order to match Person node with it's Article node, I guess the module needs to use this GUID (identifier). For instance, given the following CSV...
GUID;Title;Tags;Body;Images;GUID_REF;Name;Surname;Description
1;Test;Tag_1,Tag_2;Main content;IMAGE_URL_1,IMAGE_URL_2;1;Name_1;Surname_1;Description_1
...and given the mapping in attached screenshot, I got created an article and a person and they got related as I expected.
However, If I try this...
GUID;Title;Tags;Body;Images;GUID_REF;Name;Surname;Description
1;Test;Tag_1,Tag_2;Main content;IMAGE_URL_1,IMAGE_URL_2;2;Name_1;Surname_1;Description_1
...both nodes also get related although GUID doesn't match (1 for article vs 2 for person). What I'm doing wrong?
Finally, how can I get multiple Persons related to same article? I have tried many configurations and I found myself unable to do it.
Many thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| mapping.png | 282.12 KB | rcodina |
Comments
Comment #1
gnucifer commentedBoth your rows have GUID 1, and none have 2 as in the GUID_REF. I'm sorry but I don't understand your example. There is some limited information about mapping GUIDs in the README.txt file.
Perhaps what is confusing you is that all the related entites must be contained in the single row, this cannot be done for multiple entities in CVS-format, but you must use JSON or an XML-based format for example.