This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Extensions » Data_import with special datatype

Data_import with special datatype

Data_import with special datatype

Wednesday 10 July 2013 2:39:53 pm - 2 replies


i'm using the 'data_import' extension to import datas from a CSV file into a folder.

My class contains 3 fields :

- field1 (Text line)

- field2 (Enhanced Selection 2)

- field3 (Objects relation)

It works for the field1, but how can i get the datas in my class for the type 'Enhanced Selection 2' and 'Objects relation' ?

Thanks a lot in advance


Thursday 11 July 2013 11:45:52 pm

Hi Anthony,

the data_import extension relies on the method fromString. All standard ezpublish datatypes (Text Line and Object relation) have that method implemented. I don't know the datatype "Enhanced Selection 2" - maybe it is missing the fromString method?

Friday 12 July 2013 5:46:32 pm

Also, the fromString method for "object relations" does expect the target object id. "object relation list" expects the ids separated by a "-".

Hope that helps.


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from