• Resolved IdahoAn

    (@idahoan)


    Hi,
    I need to create list (sitemap) of .pdf, .doc and .xls files in Media library so I can create redirects to them on our new website. I would like to be able to paste the list into a .CSV file so I can import it using my redirection plugin.

    I have tried to edit some code from another post (https://www.ads-software.com/support/topic/pdf-list?replies=11) but I only need the link_url and I need to add docs and excel files. I don’t want the captions either.

    [mla_gallery columns=1 post_mime_type=application/pdf post_parent=all size=thumbnail link=file mla_caption=”{+link_url+}”]

    When I try to use the examples in your help file to list MS files this causes an error.

    [mla_gallery columns=1 post_mime_type=’application/*ms*’ link=file mla_caption=”{+link_url+}”]
    ERROR: Invalid mla_gallery tax_query = ‘post_mime_type=\’application/*ms*\”

    I am a WP beginner so this is all greek to me.

    I have searched everywhere for a plugin that will just create a sitemap of media items but I don’t think it exists even though many have asked for one.

    Thanks so much for a great plugin and any advice you can give. I will gladly donate to your plugin if I can use it to do this.

    https://www.ads-software.com/plugins/media-library-assistant/

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

    (@dglingren)

    Thank you for your question and for taking the time to add the source text of the shortcodes you have been working on; they are very helpful. I think you are close to a solution.

    Here is an alternative to your first shortcode that will generate a somewhat simpler list:

    [mla_gallery columns=1 post_mime_type=application/pdf post_parent=all size=none link=none mla_link_text="{+link_url+}" mla_caption='{+template:({+nothing+})+}']

    The mla_caption='{+template:({+nothing+})+}' parameter is a painful way to suppress the caption, but it works. You could also use a custom markup template to get whatever type of list you need.

    Your second example with post_mime_type='application/*ms*' did not generate an error message on my system. That error usually occurs when there is a syntax error somewhere in the shortcode, but I don’t see one in your example. However, this shortcode does not include the post_parent=all parameter, which is required to get the list you want. Here is my version of your second shortcode:

    [mla_gallery columns=1 post_mime_type="application/*ms*" post_parent=all size=none link=none mla_link_text="{+link_url+}" mla_caption='{+template:({+nothing+})+}']

    That should get you a closer fit to your application requirements. I will leave this topic unresolved until I hear back from you with any questions, problems or progress.

    Thanks, too, for your offer to make a donation. FTJ is a good cause, and donations are a big motivation to keep developing the plugin and supporting its users.

    Thread Starter IdahoAn

    (@idahoan)

    Perfect!!! Thank you so much. Your plugin and help has saved me hours of tedious work. I donated.

    Plugin Author David Lingren

    (@dglingren)

    Thank you for your update and for the good news. I am always happy to hear that MLA has been useful and yours is an interesting application for it.

    Thank you so much for your donation. I don’t think it is tax-deductible in Canada, but it’s a good cause and makes a difference.

    Donations, reviews and positive feedback are a big motivation to keep working on the plugin and supporting its users. Thanks again for your interest in MLA.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Create list of .pdf, .doc and .xls files in Media library’ is closed to new replies.