We don't currently automatically run form plugins when importing data in to a list.
It's something we've thought about doing, and with a quick look at the code, it might not be that hard. I can see a few things in the article plugin which would need tweaking to work properly if called during a CSV import ... hmmm ...
I'm in the middle of something I really have to get finished tonight ... but if I get a little downtime, I may take a look at this.
Meanwhile, if you are in the mood to experiment, you can try this:
In ./components/models/importcsv.php, around line 763, should be this:
PHP:
if (!in_array(false, FabrikWorker::getPluginManager()->runPlugins('onImportCSVRow', $model, 'list')))
{
$rowid = $formModel->processToDB();
FabrikWorker::getPluginManager()->runPlugins('onAfterImportCSVRow', $model, 'list');
}
... modify it to add a line to call the form plugins ...
PHP:
if (!in_array(false, FabrikWorker::getPluginManager()->runPlugins('onImportCSVRow', $model, 'list')))
{
$rowid = $formModel->processToDB();
FabrikWorker::getPluginManager()->runPlugins('onAfterImportCSVRow', $model, 'list');
FabrikWorker::getPluginManager()->runPlugins('onAfterProcess', $formModel, 'form');
}
I really have no clue if that'll work, but its worth a shot. Note that this will run any plugins on that form which happen "onAfterProcess", like sending out emails, etc. So if there's any you don't want running during the import, you should disable them (unpublish) while you run the import.
If you try this, I STRONGLY suggest you back your site/db up first. And make a copy of the fileyou are editing, so you can replace it with the original if doesn't work.
-- hugh