WordPress.org

Ready to get started?Download WordPress

Forums

Media Library Assistant
no search function ? (24 posts)

  1. mll
    Member
    Posted 1 year ago #

    Hello,

    First, thanks for the promising plugin.

    I'd like to know if it's possible to perform a search in the library, and then to batch edit the returned media - like assign them a tag.

    http://wordpress.org/extend/plugins/media-library-assistant/

  2. David Lingren
    Member
    Plugin Author

    Posted 1 year ago #

    This is a great idea, and it's on my short list for implementation in an upcoming release. As you know, the current WordPress Media Library screen has a search capability. Does it do what you want? I've looked at the source code and I don't think the current capability searches the "caption" field, for example.

    If you have any other specific ideas, let me know. Stay tuned for a search capability in the next release or so. Thanks for using the plugin!

  3. mll
    Member
    Posted 1 year ago #

    I believe WP's library searches only in the name (but I could be wrong). Moreover, the only batch operation allowed is to delete the media.

    If your plugin allows for more precise, controlled searches (name, description, slug, size, dimensions, date, whatever...), and then batch operations (like add / edit / remove tags our categories, change the post they're linked to, edit the description, the date), that would make it the king of library plugins, that should be incorporated into WordPress. :)

  4. David Lingren
    Member
    Plugin Author

    Posted 1 year ago #

    I just did a quick experiment with the WP Library search. It does a case-insensitive "SQL LIKE" search of one or more keywords (joined by AND) of the Title and Description fields (but not caption or ALT text). Each keyword in the search phrase is matched independently, so the order of search words does not have to match the order in the text. For example, searching on "friend" and "best" will match "Best Friend". If you put quotes around a search phrase then word order is required for a match (and spaces between words must match as well). You can also match on partial words, e.g., "rien" will match "friend".

    I'd like to add a Search capability with all of the features I just described, but with the ability to search other fields like ALT text, caption and the file URL. ANy other fields?

    The MLA plugin's existing "bulk edit" feature lets you add, remove or replace terms in any of the taxonomies you have chosen to support. It also lets you change the Author and the Parent ID. These features would be available to bulk edits after a search.

    Let me know if there's anything else I should consider as I work on this feature. Thanks again for your comments and encouragement.

    By the way, I have based this plugin on ideas I wished I could find in the WordPress Core. I'd be happy to see any or all of them added to Core!

  5. mll
    Member
    Posted 1 year ago #

    Thanks David, I'm eagerly waiting for this functionality to be implemented! :)

    (It could be useful if we could search the author of a media)

  6. David Lingren
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the encouragement and the suggestion for an Author search.

    I'm working on a Search Media box with the ability to search in the title, caption, name/slug, description and alt text fields. you can select which of the fields to include in the search and select "AND" or "OR" as the connector between the search terms.

    For the Author search, I plan to make each entry in the Author column of the listing a link which will filter the list when you click the link. That's the way category and tag entries work now. Would that satisfy your needs?

  7. mll
    Member
    Posted 1 year ago #

    that would be cool indeed :)

  8. David Lingren
    Member
    Plugin Author

    Posted 1 year ago #

    I've just released version 0.60, with the search function we've been discussing and the "searchable" Author column. Let me know what you think.

  9. mll
    Member
    Posted 1 year ago #

    I made a search for "logos" without the quotes, all checkboxes ticked, "or" selected. Although the built-in media library search returns a lot of hits, none are returned.

    Not more luck with "logos*"

  10. David Lingren
    Member
    Plugin Author

    Posted 1 year ago #

    I am willing to bet that this problem is related to your [mla_gallery] issue. There’s some other software that is changing the database query and forcing a “post_parent” match. I will keep looking for that issue and report back.

    Adding the "*" will have no effect. The search function automatically adds the SQL Like wildcard, "%", before and after each search word you enter.

  11. David Lingren
    Member
    Plugin Author

    Posted 1 year ago #

    Well, I lost my bet. I cannot reproduce this problem with or without Role Scoper. Something else is causing your problem.

    Are all of your searches failing, or is there something special about this one? Have you tried searching with the defaults, i.e., just title and description checked, connected by "and"?

    There is (should be) no difference between the "or" and "and" connectors for a single-word search.

  12. mll
    Member
    Posted 1 year ago #

    Yes, all searches are failing, and yes I tried with many combinations of options, includung the default ones. :(

    And about your laste sentence : it just made me understand the logic operator is not for the checkboxes nect to them (*where* I search: title, description etc), but for the words in the textbox. If that's right, maybe this should be more obvious, by maybe moving the radio buttons on the same line as the textbox.

  13. mll
    Member
    Posted 1 year ago #

    I just instelled MLA on another site of mine, which also has Role Scoper. I can confirm that on this site, the search works fine ! *scratches head*

  14. mll
    Member
    Posted 1 year ago #

    And finally... deactivating and reactivating MLA fixed the bug. Hooray !

  15. mll
    Member
    Posted 1 year ago #

    I have a suggestion : would it be possible to display the "attachment size" column, sort it, and maybe filter it ?

  16. David Lingren
    Member
    Plugin Author

    Posted 1 year ago #

    What a relief. Since you were also having trouble with BackWPup and with phpMyAdmin showing the mla_alt_text_view as "in use", it's possible that some problem with the View was also affecting the search. The deactivate/activate cycle would delete the View and re-install it.

    In any event, I am happy this has been resolved.

    Thank you for the suggestion to display attachment size. I will add that to my list for future development.

  17. David Lingren
    Member
    Plugin Author

    Posted 1 year ago #

    I'm going back over the support topics and planning future development. I now realize that I'm not quite sure what you mean when you say "attachment size". Can you be more specific, e.g., file size, image size (height x width) or something else? Thanks for any help you can give me.

  18. mll
    Member
    Posted 1 year ago #

    Well, I thought about the file size, to sort out too big media files when tyding things in my library. Moreover, file size applies to different kind of items (images, sound, zip file, anything), whereas the number of pixels is attched only to the notion of image.

  19. David Lingren
    Member
    Plugin Author

    Posted 1 year ago #

    I have just released version 1.10, which allows you to map attachment metadata such as file size, width, height and pixel count, to custom fields.

    You can make the resulting custom field a sortable column in the Media/Assistant submenu table. That should help you do the analysis and cleanup you desire. Let me know if you have any issues with this new feature.

    Thanks again for the suggestion and for your patience.

  20. mll
    Member
    Posted 1 year ago #

    well, thank YOU daniel. this plugin just gets cooler and cooler ! :)

  21. jeynon
    Member
    Posted 1 year ago #

    So I am looking for documentation about a Search function for the public side of using it. http://www.uwrwa.org/explore/maps.asp So this is a client that will be moving over into WordPress and I want them to use this plugin to load and organize their files. Notice how they can sort those maps on the page. I know how to write shortcode in the function.php page and make it do stuff on the load of a page but how could I rewrite your shortcode each time in the page when someone does some action? I would like to just grab the result of the action and sort the media again based on new parameters. So if they check the box "jpg" it would sort only by extension type jpg? Thanks!

  22. David Lingren
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for this question. I don't really see how it relates to the earlier posts in this topic, but I think I understand what you're asking. Here's a link to a recent topic that may give you a start:

    template query for att. tags

    The examples in that topic are for a taxonomy query, but the same approach would work for any of the [mla_gallery] parameters, including orderby and order. If you're comfortable with writing PHP code, writing a template to process the values from the form and pass them to the [mla_gallery] shortcode should be straightforward.

    I hope that gets you started. If you have any problems or further questions, please open up a new topic in this support forum so we can focus on your specific situation. Thanks for using the plugin.

  23. jjohns
    Member
    Posted 1 year ago #

    Am I reading correctly that a search tag feature will be added at some point?

  24. David Lingren
    Member
    Plugin Author

    Posted 1 year ago #

    jjohns,

    I am not sure what you mean by a "search tag" feature, but I can give you some ideas for finding Media Library items by taxonomy terms, e.g., tag values.

    The available taxonomies are listed in the screen/subscreen list, between Media/Library and Media/Assistant. If you select one of these subscreens you will see a list of the terms in the taxonomy. There is a "Search" box in the upper right of these screens you can use to filter the list of terms. In the "Attachments" column, there is a count of the items that are associated with each term. If you click on the number in that column you will get a Media/Assistant screen showing all the items having that term.

    On the Media/Assistant screen you can display a column for any of the available taxonomies. If you don't see the taxonomy you want, pull down the Screen Options (upper-right corner) and check the box next to the one you want. Each of the terms in the taxonomy column is a link; click on a tern to get a list filtered by that term.

    I hope that gets you started. If you have any problems with these procedures or further questions, let me know. Thanks for your interest.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.