• Resolved utrenkner

    (@utrenkner)


    Our editors who work with MLA on a daily basis like the plugin very much.

    But one thing they are missing is: A possibility to duplicate media. This may sound a bit strange because normally one would try to avoid having duplicate files on the server. However, our journalists try to tailor the caption of an image to the specific article. Thus, the same image, used in another article may be shown with a different caption.

    To achieve this, they always download the image, and then add it anew via MLA. They then have to duplicate most of the meta data (ALT, copyright, …) just to be able to enter a different caption text. To make this process easier, it would be fantastic to have a button or other possibility which would allow duplicating an image including all of its related data entered in MLA.

    Note, we would be very happy to donate 50 USD to the Chateau Seaview Fund if we could get this feature – it would save our editors quite some hassle.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your request, for the positive feedback on MLA and for the detailed description of your application; very helpful. Thanks as well for your generous offer to donate to the fund.

    You wrote “normally one would try to avoid having duplicate files on the server.” I agree, and this makes a duplication feature a poor candidate for the core MLA plugin. I will investigate the work required to make this available as an example plugin for you and others who specifically need it. I will post an update here when I have progress to report.

    Thread Starter utrenkner

    (@utrenkner)

    Thanks for looking into this! I agree that a separate example plugin may be the best solution for our case. We look forward to hearing from you how it could work.

    Plugin Author David Lingren

    (@dglingren)

    Thank you for your patience while I worked out an initial version of the solution for your request.

    I have uploaded a new MLA Development Version dated 20230717 that includes the new example plugin. You can find step-by-step instructions for using the Development Version in this earlier topic:

    How to download & install the current development version of MLA

    Once the Development Version is installed you must install and activate the example plugin. Navigate to the Settings/Media library Assistant Documentation tab and click the “Example Plugins” button. Type “duplicate” in the text box and click “Search Plugins” to filter the table.

    You are looking for the “MLA Duplicate Item” example plugin. Find that plugin and hover over the title in the left-most column. Click the “Install” rollover action, then go to the WordPress Plugins/Installed Plugins submenu and activate the example plugin as you would any other plugin.

    Once the Development Version and updated example plugin are installed and active you can find a new “Duplicate” element added to the rollover actions on the Media/Assistant admin submenu table. Click the action to make a duplicate of the selected item.

    I haven’t written the plugin documentation yet, but it’s pretty simple. The plugin has three option settings you can configure for your application. Go to the Settings/MLA Duplicate admin screen to see them.

    This example plugin will be part of my next MLA version, but in the interim it would be great if you could install the Development Version and the example plugin and let me know if it works for you. Thanks for inspiring this MLA improvement.

    Thread Starter utrenkner

    (@utrenkner)

    Hi David, many thanks for the quick and good work. We installed and tested the example plugin and it absolutely does the job!!! Just one thing: When we hit “duplicate”, the duplication takes place, but the resulting page shows no content, as if it has not worked correctly. However, checking again the available media confirms that the duplication has taken place (I also checked the actual creation of the various files with different dimension – they are always created as they should).

    Many many thanks! I just sent a 100 USD donation to your ALS charity – you are doing such great work there. All the best to you and Ilana!

    Plugin Author David Lingren

    (@dglingren)

    Thanks for the positive feedback on the new example plugin. Thanks especially for your generous donation in support of our ALS work. Donations, reviews and positive feedback are great incentives to keep working on the plugin and supporting its users.

    You wrote “When we hit “duplicate”, the duplication takes place, but the resulting page shows no content, as if it has not worked correctly.” That’s a problem I’d like to fix. After clicking “Duplicate” you should see the Media/Assistant screen with the “All” view and the new item at the top. There should be a message just below the screen title with something like “Item 9999, duplicated as new item 9999.” with the appropriate item ID numbers. The URL in the browser should look something like:

    http://site.id/wp-admin/upload.php?mla_admin_nonce=xxxxxxxxxx&page=mla-menu&mla_admin_action=duplicate_item&mla_item_ID=9999

    Can you tell me more about what you see so I can investigate further? Do you know if there are any PHP warning or error messages after the operation? Thanks for any help you can provide.

    Plugin Author David Lingren

    (@dglingren)

    I have released MLA version 3.10, which contains the new example plugin developed for this topic.

    I am marking this topic resolved, but please update it if you have any problems or further questions regarding the new example plugin. If you are still having the “no content” issue, any additional details you can provide will help me investigate further. Thanks for inspiring this MLA enhancement.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Feature request: Duplicate media’ is closed to new replies.