Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Like me, you might have bumped into the need for moving a lot of existing documents from a taxonomy structure into an OG structure.
Copy the following php code into a regular node (as admin) and it should allow you to choose which taxonomy term you want 'transferred' and which OG to 'transfer' it to.
The Taxonomy structure is not altered.
I'm NOT a skilled php or drupal developer - so look out! And all you Gurus out there: feel free to add and improve, but dont mock my spaghetti...
Comments
wheare are "code" ?
wheare are "code" ?
reasonable question....
dunno ... it was in here earlier ... I think ... I'll copy/paste asap - tomorrow ...
I'd be interested in seeing
I'd be interested in seeing this code :)
I'd like a look too!
It would help me to migrate from TAC to OG (if I decide that is the right thing to do!)
Knock Knock Where white
Knock Knock
Where white rabbit?
..
code example would be useful
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
This can be accomplished pretty easily using VBO
Just set up a view that contains taxonomy terms and group names. Having separate columns for each vocabulary helps...