Closed (fixed)
Project:
Links Package
Version:
5.x-1.8
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Jan 2008 at 02:46 UTC
Updated:
30 Dec 2008 at 21:05 UTC
hi syscrusher ,
Thank you for the latest update on this "very" useful module. I hope you find time to continue work on the Admin section. A tool to prevent dupe links would be very helpful.
Is there a way to copy Links from one website to another website?
I'm about to add about a couple of hundred Links and would like to use them on 2 websites.
Not sure if this possible.
thanks
Jw
Comments
Comment #1
syscrusher commentedHow hard or how easy this is would depend on whether the destination site already has the Links package installed.
If not, you can just copy the {links} table from one site to another to get the links themselves copied. But I assume what you are wanting is "weblink" type nodes, created with links_weblink.module, correct?
In that case, you'll have to first clone the {links} table and then move the nodes, probably adjusting the node IDs. This requires copying rows from more than just the {node} table -- check Drupal core docs for details. Once you have the "weblink" type nodes copied, you'd have to then copy the rows from the {links_node} table, which is where URLs stored in {links} get associated with nodes stored in {node} and the other core tables.
If you want to move links created in links_related.module, the procedure is essentially the same, except that you'll be copying nodes of arbitrary type "...WHERE {node}.nid IN SELECT nid FROM {links_node}" or similar query. As a matter of fact, this more general procedure would also work for the links_weblink.module case as well.
I'm sorry this isn't an easier thing to do, but the problem of duplicating node IDs between Drupal sites would be the real hangup here.
Let me know if this doesn't answer your question.
Kind regards,
Scott
Comment #2
green monkey commentedthanks - you gave me a place to start
I'll follow your suggestions - and be sure I have a BU - before getting into the messy stuff
thanks again :-)
J
Comment #3
syscrusher commentedNo further information requested; closing issue.