In the latest release there's no images or documents migration yet. Theres no files stored in sites/default/files. It would be nice to include this feature to this great module.

I found that the module can't parse spip's syntaxis, and leave broken link url, like this:

http://domain/node/IMG/pdf/document.pdf

Keep on testing !!!

Comments

jonhattan’s picture

Just commited some advance to cvs. Now it imports documents and rewrite links. Some finetune still needed.

josue.valencia’s picture

I've test this feature and I can't get the files imported. The link's path are allright.

josue.valencia’s picture

Ok, it was a matter of a $query. In spip2drupal.batch.inc change the codo in line 433 for this one:

//  if (variable_get('spip_version', NULL) < 2) { // TODO: in spip 2.0.10 it is 14558
    $query = "SELECT spip_documents.id_document FROM spip_documents LEFT JOIN spip_documents_articles ON spip_documents.id_document = spip_documents_articles.id_document WHERE spip_documents_articles.id_article = ".$id_article;
//  }
//  else {
//    $query = "SELECT id_document FROM spip_documents_liens WHERE objet='article' AND id_objet = ".$id_article;
//  }

Thanks for the support jonhattan, and sorry to be a pain in your brain XDDD

jonhattan’s picture

Status: Active » Fixed

this is already fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

gaëlg’s picture

Status: Closed (fixed) » Needs work

Actually it seems like files are not copied from the spip IMG dir to the drupal files dir. You have to manually copy (and chown/chmod) the IMG dir into the files dir. So that it's useless to have a field for the spip document root in the spiptodrupal admin interface.
Am I wrong ?

jonhattan’s picture

Status: Needs work » Fixed

That's right. files are no longer copied from spip to drupal. ALready fixed in git.

jyziyuan’s picture

什么东西啊,不是很清楚

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.