By nikolajb on
Is there an easy way to convert OG's to taxonomy terms?
When we set up www.ffk.dk we expected to use OG heavily, but it never really picked up. So I'm thinking about ditching OG and using taxonomy terms to indicate which team a node is related to. Has anyone got any experience with such a convertion? I've been doing some searching for a solution without much luck. Could it be done by a PHP script? Since there are 1000+ nodes, I'm not fond of the thought of converting by hand :)
Comments
PHP script (or rather a small
PHP script (or rather a small module) might be viable if OG names map one-to-one to term names – otherwise, mapping would be a mess. Mass-writing taxonomy terms is actually easier than manipulating taxonomy on a single loaded node object. :)
Also, Views Bulk Operations might alleviate the workload, especially, if there is just a handful of groups-to-be-terms.
Thanks for you input. I
Thanks for you input. I expect to create a term to match each of the OG groups 1:1, so it should be possible to script the conversion. I'll take a look at Views Bulk Operations.
og drush commands
I submitted some og commands for og-6.x a few months back; see #1090438: Drush commands for organic groups.. I haven't had a chance to go back and wrap them up, and there is no version for og-7.x available yet, but if you're thinking of scripting your conversion, this might be helpful to your efforts.
Cool. Thanks.
Cool. Thanks.