PDA

View Full Version : Articles back to threads?


moonclamp
08-16-2014, 08:02 AM
We used to have a recipe section on our forum, but when we upgraded we 'promoted' all these threads to articles.

It seemed like a good idea at the time, but this section is now hardly used - so we want to move them back to threads and revert the comments to follow up posts.

Preferably as a batch rather than one at a time.

Any idea if this can be done without too much messing around?

Cheers :)

cellarius
08-16-2014, 09:09 AM
There already exists a thread for every article for the comments; it normally is in a hidden forum. It would peobably not be too hard to write a script that fetches the articles (nodes), takes the content of the article, reads the comment thread id and overwrites the firstpost of the thread.

Just to outline how I would try to do it.

moonclamp
08-16-2014, 09:42 AM
True, but the OP starts with "You can view the page at", followed by a link to the CMS article.

I'm not knowledgeable enough to fetch the content and edit the OP - unless of course I do every thread manually.

cellarius
08-16-2014, 10:34 AM
True, but the OP starts with "You can view the page at", followed by a link to the CMS article.
Well, of course it does. That's why the firstpost of the thread needs to be overwritten with the article content, just as I wrote.