WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

You are not logged in.

#1 30.01.2023 17:16:19

losttrip
Member

NWI - Bulk Delete Gallery Images

WBCE Version: 1.5.4
NWI Version: 5.0.17

Is there a plan to implement bulk deletion of Gallery Images added to a post?

Is there a workaround for safely deleting large amounts of Gallery Images from a post?  (e.g., database, file system)

I have a client who added a large number of gallery images to a post and now they want to delete them, but it is cumbersome to delete them one by one.

Last edited by losttrip (30.01.2023 17:18:55)

Offline

#2 30.01.2023 17:38:44

florian
Administrator

Re: NWI - Bulk Delete Gallery Images

Is there a plan to implement bulk deletion of Gallery Images added to a post?

I'm afraid this problem is rather uncommon, so there's no such plan.

Is there a workaround for safely deleting large amounts of Gallery Images from a post?  (e.g., database, file system)

Yes.
1.) Point in the backend news overview on the post in which the images should be deleted (just pont, no click), the post id is display as a tooltip.
attachment.php?item=3345&download=1
2.) Access the database with adminer or sth. similiar and open the table YOURPREFIX_mod_news_img_img.
attachment.php?item=3346&download=1
3.) The table lists id, picname, picdesc, post_id, position. Re-Sort the table by post_id and delete all the rows which correspond to the post where the images should be removed.
4.) Access the media directory by FTP (you don't see the nwi images in the WBCE media management). Find the folder .news_img (mind the dot). In this folder, for each post a subdirectory was created in which the gallery images are stored. Delete the files and the corresponding preview images in the thumbs subdirectory.
attachment.php?item=3344&download=1

Last edited by florian (30.01.2023 17:41:04)


Code allein macht nicht glücklich. Jetzt spenden!

Offline

#3 30.01.2023 18:34:43

losttrip
Member

Re: NWI - Bulk Delete Gallery Images

Thank you!

Offline

Board footer

up