![]() |
|
Updating FolderName (Rename) automatically - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: Updating FolderName (Rename) automatically (/thread-12511.html) |
Updating FolderName (Rename) automatically - thommy - 09-05-2016 Hi, I'm using custom fields for an album added by my plugin. new directory name = custom_field1; Can anybody give me an example how to handle this? Updating FolderName (Rename) automatically - sbillard - 10-05-2016 The album object has a rename(to) method that does this. Please note that dynamic albums will hide the suffix in the User interface, but you definitely would need to include it when calling that method. Also note that renaming and moving are different functions. Renaming presumes that the parent album does not change. Updating FolderName (Rename) automatically - thommy - 10-05-2016 Thank you! Updating FolderName (Rename) automatically - acrylian - 10-05-2016 You find info about filters here: http://www.zenphoto.org/news/zenphoto-plugin-architecture/ |