I have a site where field collection was used to store entity images (multiple in one field). I think it is better to have them in an image field (better colorbox support, and views, and...).
Is there any easy way to modify all nodes to store the field from one field to the other?
From: "Lluís Forns" enboig@gmail.com To: support@drupal.org Sent: Monday, December 30, 2013 7:07:52 AM Subject: [support] D7, how to move images from field collection to image field
I have a site where field collection was used to store entity images (multiple in one field). I think it is better to have them in an image field (better colorbox support, and views, and...).
Is there any easy way to modify all nodes to store the field from one field to the other?
H Lluís,
I did something similar with "Rules" I had a field with a misspelled machine name and I couldn't live with it, so I needed to copy the misspelled field to the newly created but correctly spelled field. I created a rule which did this copy for me on the "Open Page" event, and then I opened all the pages, which in my case was fewer than 100. This is not a practical solution if you have a huge number of pages, but it worked splendidly for my case and it was dead simple.
Chris.
Thanks, I will try. I have around 150 nodes so it will not be a big task. I hope rules can handle fields with multiple values.
2013/12/30 Chris Miller cjm@tryx.org
*From: *"Lluís Forns" enboig@gmail.com *To: *support@drupal.org *Sent: *Monday, December 30, 2013 7:07:52 AM *Subject: *[support] D7, how to move images from field collection to image field
I have a site where field collection was used to store entity images (multiple in one field). I think it is better to have them in an image field (better colorbox support, and views, and...).
Is there any easy way to modify all nodes to store the field from one field to the other?
H Lluís,
I did something similar with "Rules" I had a field with a misspelled machine name and I couldn't live with it, so I needed to copy the misspelled field to the newly created but correctly spelled field. I created a rule which did this copy for me on the "Open Page" event, and then I opened all the pages, which in my case was fewer than 100. This is not a practical solution if you have a huge number of pages, but it worked splendidly for my case and it was dead simple.
Chris.
-- [ Drupal support list | http://lists.drupal.org/ ]
You can let rules loop a list if you use vbo (views bulk operations). On 31 Dec 2013 10:06, "Lluís Forns" enboig@gmail.com wrote:
Thanks, I will try. I have around 150 nodes so it will not be a big task. I hope rules can handle fields with multiple values.
2013/12/30 Chris Miller cjm@tryx.org
*From: *"Lluís Forns" enboig@gmail.com *To: *support@drupal.org *Sent: *Monday, December 30, 2013 7:07:52 AM *Subject: *[support] D7, how to move images from field collection to image field
I have a site where field collection was used to store entity images (multiple in one field). I think it is better to have them in an image field (better colorbox support, and views, and...).
Is there any easy way to modify all nodes to store the field from one field to the other?
H Lluís,
I did something similar with "Rules" I had a field with a misspelled machine name and I couldn't live with it, so I needed to copy the misspelled field to the newly created but correctly spelled field. I created a rule which did this copy for me on the "Open Page" event, and then I opened all the pages, which in my case was fewer than 100. This is not a practical solution if you have a huge number of pages, but it worked splendidly for my case and it was dead simple.
Chris.
-- [ Drupal support list | http://lists.drupal.org/ ]
-- *Ser freak no és imprescindible per ser informàtic, però ajuda. *La vida no ha de ser feliç, ha de ser plena. *Abans d'imprimir aquest missatge, pensa en el medi ambient.
-- [ Drupal support list | http://lists.drupal.org/ ]