Hello,
I need to convert one physical album to virtual one. Or several physical albums but not all existing.
Does I understand right that Virtualize extension will automatically convert all physical albums to virtual albums or there is a way to convert only selected physical albums.
Thanks,
Alexandr
Piwigo version: 2.9.3
PHP version: 7.0.27-0+deb9u1
MySQL version: 5.7.21-20
Piwigo URL: https://terijoki.spb.ru/photos/
Offline
Well, I looked to Virtualize plugin code and see the answers to my questions.
Plugin will transform all physical albums to virtual one without possibility to select particular album for conversion.
Looks like it should be not too difficult to make a new plugin based on Virtualize, let say VirtualizeAlbumById, to convert only images from the physical album with specified id. I will try :)
Thanks,
Alexandr
Offline
Hello,
I made very simple modification of Virtualize plugin by plg.
It convert one physical album given by album id. The debug mode is provided to see which files will be converted.
So, you can input physical album id to convert, check in Debug mode that everything is ok, remove Debug flag and perform album virtualization. You can repeat above steps for next album if you need and so on.
For my installation of Piwigo 2.9.3 it works without problems.
The only thing is that I applied my changes locally replacing original Virtualize plugin source code. Which is not right way, I understand. But I didn't find how to commit new plugin to Piwigo community.
If somebody will be interested in such a plugin, please point me how to commit it.
Alexandr
Offline
I think all plugins pages contain links to their respective repositories .
https://github.com/plegall/Piwigo-virtualize
Thanks for your contribution. :)
Offline
Well, as this is not a replacement for Virtualize plugin, I made a separate repository:
https://github.com/abravorus/Piwigo-VirtualizeAlbumById
And registered this extension on Piwigo web-site:
https://piwigo.org/ext/extension_view.php?eid=878
Thanks,
Alexandr
Offline