• Resolved Jason

    (@jasoncamp)


    Hi there,

    First off, this is a fantastic plugin and it’s solved a major challenge for me. We’re using it to sort a huge library of PDFs by category, and the shortcode and att. categories have worked like a charm.

    In addition to conventional category groups, we’ve also built an A-Z sort of the files, so that a row of linked letters (A B C D E F …) fire a do_shortcode() with the letter set as a category. This is also working beautifully.

    Except…

    In the few instances where there are no files assigned to a particular letter category (Q, X, Z), the shortcode returns nothing. Is there any way to add/set a “no results found” message if the shortcode query comes up empty?

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

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

    (@dglingren)

    Thanks for the good words and this question. I’m glad MLA is helping you manage your PDF documents effectively.

    The current version of [mla_gallery] does not have an option to replace the empty string returned when a gallery has no items. This conforms to the precedent set by the WordPress [gallery] shortcode.

    I will add a new parameter, mla_empty_gallery_text, to my next version. When it’s available you can add it to your [mla_gallery] shortcodes to change the default (empty) “message”.

    In fact, you can add it now and it will be harmlessly ignored until you upgrade to the next version.

    I will leave this topic unresolved and update it once the new version is available. Thanks again for your interest in the plugin.

    Thread Starter Jason

    (@jasoncamp)

    That would be fantastic, David. When there’s no results it should be fairly obvious what’s happened, but it’d be nice to be able to include a short message.

    Thanks for the speedy response and the eventual fix!

    Plugin Author David Lingren

    (@dglingren)

    Well, imagine my surprise…

    I started to implement this new feature and discovered that it’s already in there!

    Have a look at the Settings/Media Library Assistant Documentation tab under “Gallery Display Content” you will find:

    mla_nolink_text replaces the empty string displayed when there are no gallery items or no pagination link

    Give that a try and let me know if you have any problems or further questions. I’m going to mark this topic resolved for now.

    Thread Starter Jason

    (@jasoncamp)

    Thanks, David.

    Both for this rapid solution as well as whenever you actually implemented it!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘"No results found" message?’ is closed to new replies.