Active
Project:
Links Package
Version:
master
Component:
Code: links_weblink.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Jun 2006 at 09:19 UTC
Updated:
1 Jun 2006 at 12:59 UTC
how can i import a lot of bookmarks from : delicious or excel or firefox bookmark ??
i think to import in csv format whith phpmyadmin but what is th url_md5 field should i generate one ??
thank's
Comments
Comment #1
syscrusher commentedTo do any kind of import to the links tables, you must use the API calls from a script. The MD5 is a not just an MD5 of any arbitrary URL, but rather requires that the URL be normalized first through the appropriate API call. This is critical, because the normalization process removes session ID parameters from the URL, removes empty GET parameters, sorts the parameters, and so on.
If you don't do it this way, then it is likely the API will not correctly detect a match with an existing URL in the future.
The API calls also ensure the correct node linkages and other referential integrity.
Take a look at the sample migration scripts that are in the Links Bundle directory. You can use these as a design pattern to create your own custom import script. If you get something that you think would be useful to others, please consider submitting it as a contributed script.
Kind regards,
Scott