Page 1 of 1

Copying an article in bulk

Posted: Thu 8. Jan 2009, 10:36
by powlido
Hi All,

Can anyone tell me if it is possible to copy multiple articles in one hit? (maybe in the tables?)

I have an article I need to replicate about 100 times! as you can imagine, it's quite a time consuming task.

No worries if not - guess I will just have to plough on.

Many thanks,

Paul

Re: Copying an article in bulk

Posted: Thu 8. Jan 2009, 12:49
by marcus@localhorst
hi,
you can do this by writing a php script. you can take inspiration from
function copy_article_to_level($do, $dbcon) >> http://www.google.com/codesearch/p?hl=d ... lecode.com

but I think till you wrote a running script you have copied and pasted these 100 articles ^^

(maybe there is another/faster way to do this, but with pure sql it maybe a bit complicated, because you need to copy the row from article and the connected article content from another table...)