I’m sure sometimes there’s unmatched items in a relationship field when doing an import, I’d love to be able to assign anything that doesn’t match somewhere.
Ideas here for where unmatched items go:
1) the unmatched items are dumped to a text field of my choosing in the import setup. Unmatched items are then divided by a comma or a delimiter of my choice.
2) the unmatched items are created a new entry in the related channel automatically (likely would only be useful in title matching)
I used to mod the datagrab_relationships.php under fieldtypes to do a version of #1, but with Datagrab under more active development this seems like a recipe for a bad idea. My mods should be someplace else and stay away from the core.
I suppose this could be done at the datatype level. Create a custom mod of the datatype and then look at my relationship field and check for matches and then split off the unmatched to create a new attribute in the datatype for unmatched items. It just seems like I’d be repeating a task that the relationship fieldtype is already doing - querying the DB likely shouldn’t happen at the datatype level, right?
Thank you for what you’re doing for Datagrab. It’s very good to see this module in smart and capable hands.