I’m wondering what happens if I’ve been using a plugin for a field type, like an image uploader, for several months and the client has uploaded lots of files, then we find it necessary to change the plugin.
Does all the uploaded info in the DB get lost? As in, if one plugin had fields saving the url to an uploaded picture and I change the field type to a text field, will it print that url string, or will all the info be borked in the DB? And then if I realize the field type change (or plugin change) don’t work as needed or expected, would switching back to the original restore the original functionality.
In my example, I’ve got a hodge-podge of plugins going on that may not be compatible with 1.6.8, or could be handled better with the FieldFrame. If I find out that the existing plugins don’t work under 1.6.8 and have to change what I’m using, I want to know if I’ll be looking at re-uploading all the files used with the old plugin.
Moved to the Extensions forum by Moderator
It depends.
For instance:
a:1:{s:9:"file_name";s:14:"chalkboard.jpg";}One of my image file fields stores this info in it. If I convert it to a textarea or text field, that content won’t be automagically changed to have a link with chalkboard.jpg in it.
In my example, I’ve got a hodge-podge of plugins going on that may not be compatible with 1.6.8, or could be handled better with the FieldFrame. If I find out that the existing plugins don’t work under 1.6.8 and have to change what I’m using, I want to know if I’ll be looking at re-uploading all the files used with the old plugin.
Plugins are strictly front end items. I think you’re comparing apples and oranges.
Could you be more specific?
Sorry for the sloppy post. I did mean extensions, not plugins. For example, I’m using the Mark Huot File ext for a custom field that the client uses to upload pdf’s and images. However, it doesn’t do exactly what I need for some new functionality (client needs to be able to be able to indefinitely add new upload fields).
When I add a new extension to cover this functionality and switch the custom entry field to use the new extension, will that potentially screw up the months of uploads my client has already made, or is it safe to swap between extensions/custom entry fields?
I realize I’m not explaining this very well, and apologize ahead of time.
My question is 2 fold:
Philosophically, so I can grasp what is possible/suggested with regard to this in future development (ie understanding best practice).
Practical: I (may) need to transition my File (Mark Huot) extension custom field to being a FieldFrame + nGen File Field custom field.
Thanks, eyevariety for that info. Sue, thanks again for the help and moderation.
So, I still don’t have an answer for the #1. Philosophical question. Should you on principal never change extension types for custom fields with existing entries for fear of losing the data and not being able to switch back to the original extension if the new one doesn’t work out?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.