• Resolved ominem

    (@ominem)


    I’ve developed a plugin to export and import pods to and from excel and works great, but it began to have problems once I changed a field to relation with multiple selection. It export it as comma separated elements in a single excel cell and when I try to import that field goes blank. Is it possible that if in the $pod->save( $data ) instead of storing that field info as a single pair key => value must be an array of values? Thanks in advance for any help
    Omar

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    You’ll need to pass the value as an array of values when saving. That’s the only workaround here, Pods won’t split the value by comma in that kind of case because it’s expecting that to be handled already at that point.

    Have you shared this plugin online yet? Sounds cool, I’d love to take a look and even do a free code review for you.

    Thread Starter ominem

    (@ominem)

    Sorry for keeping the thread open, I did it right after writing the question and work perfectly but wanted to know if there was any other way. No I haven’t published the plugin yet. I will let you know and it would be great to have your review.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple select relation field importing’ is closed to new replies.