ZenphotoCMS Forum
Custom Data Fields - Mass Changes? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Custom Data Fields - Mass Changes? (/thread-11917.html)



Custom Data Fields - Mass Changes? - kocho - 2015-02-26

Hey all,

Within my gallery, I'm using the CustomFieldExtender plugin. For every single album, I'll enter in information specific to that album.

Now, the actual names of the fields I'm happy with, but the content I've entered into those fields need to be changed. I understand I can run a search for a particular field and then go into each album manually and make the change, but I have around 3000 albums to change so I need to make it easier than that.

Let's say I have a field called "Colour" with manually typed data such as "Red" "Blue" "Blue / Green" "Orange" (you get the picture), I need to change each one in a find / replace manner.

Does anyone have any ideas? Is this information stored in a place where I can find / replace the information or something?




Custom Data Fields - Mass Changes? - acrylian - 2015-02-26

The plugin creates real database fields on the tables so you can access them with the $obj->get('') and $obj->set('',$value) programmatically.

Otherwise there is no way.




Custom Data Fields - Mass Changes? - kocho - 2015-04-22

Awesome, worked it out. Thanks acrylian!