norbusan / piwigopress

Piwigo-Wordpress integration
418 stars 5 forks source link

Feature request - insert pictures from specific albums #2

Closed arigit closed 9 years ago

arigit commented 9 years ago

in the GUI, currently this plugin is able to download the "most recent" pics.

Now when migrating all my posts from Gallery3 to Piwigo(media), I need to rebuild very old posts... and with 1600 pictures in the gallery. For that use case the "most recent" pics do not really help.

It would be nice to select "most recent" from a specific album (that is how the old Gallery2 and then Gallery3 plugins work), they had a drop-down with the album list and after picking the album they would list the pics in pages of 10 or 20.

norbusan commented 9 years ago

Some progress in the branch "category"- you can now select a category by id, but there is no dropdown list by now.

arigit commented 9 years ago

This works just fine. This branch also includes the new albumpicture link type.

Even as it is - this is fully usable specially for people having hundreds of albums. I would just expand the "tooltip" that pops up when overing over the new CatID field in the GUI to make it more descriptive/discoverable to people:

Right now it says "0 for all, otherwise catid"

I suggest something like: "This is the Category/Album ID from where pictures will be obtained; use 0 for 'all albums' (most recent pictures first, regardless of album), use a specific Category ID number (e.g. 123) to get pictures from the specific album with that ID (CatID=123 in the example)"

norbusan commented 9 years ago

Thanks, I will make this change.

Next I want to add a button that loads the remote categories, and displays them in a dropdown list. But I need to learn some Ajax/jquery first ...

norbusan commented 9 years ago

Ok, now implemented. Please give the "category" branch a try. Without doing anything it works as before, fetching the list of latest photos.

When pressing the "Load cat" button, the list of caegories is loaded and displayed, and you can select from the dropdown list one of the categories.

Hope that works nicely for you, let me know.

norbusan commented 9 years ago

Btw, I got the OK from the current maintainer to take over PiwigoPress, so if this features worked out nicely, I will prepare a new version and upload it to WordPress.

arigit commented 9 years ago

Tested the category branch - works perfectly well. I have been using this or about a day migrating many posts and no glitches to report.

This plugin is now far more powerful (and faster and convenient) than the gallery2/gallery3 plugins ever where.

Glad to hear that no fork will be needed!

norbusan commented 9 years ago

Thanks for testing. I am preparing a new release now. Since it is the first time I release something for wordpress I need to read up a bit on the procedure, though.

I have already merged everything into the master branch.