• Resolved ernstwg

    (@ernstwg)


    Hi David.

    My search page is based on on your MLA UI Elements Example. And I am working with the justified image grid including the built-in auto take over feature for mla galleries [mla_gallery] and wordpress galleries [gallery] as well. So far so good.

    Depending on the search criteria the number of results can be high. In that case it could be useful to provide additional help to the user, kind of additional “dynamic functionality” to refine the search results.

    1. An area to enter search criteria.
    2. An area to display post title of the posts, which correspond to the search criteria.
    3. An area to display images, which correspond to the search criteria.

    Area 1 nd 3 is no problem. I just wonder wether your plugin Get Post Galleries Example could be useful. As far as I hope, it would come up with a list of post titles for instance, linked to the post. I see problems with JIG in the handling of the [gallery] shortcode. So far I could not get the get post plugin to work.

    Writing this I could also think of a taxonomy for the images (referring to the title of the parent). JIG knows a filtering option using existing taxonomies.

    What do you think?

    Many thanks, Ernst Wilhelm

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

    (@dglingren)

    Thanks for an interesting question. I want to make sure I understand what you intend to display in your Area 2.

    It looks like your Area 1 refers to search criteria for selecting Media Library items; is that right? If so, it looks like Area 2 would display the title of posts to which the Media Library items are attached – the parent posts for those items; is that right?

    You want to display “a list of post titles for instance, linked to the post.” Does that mean that each post Title would be a hyperlink that goes back to the post with that Title?

    If I can understand more clearly what you intend I can review the Get Post Galleries Example plugin to see if it would be a useful part of a solution. Thanks for any additional details you can provide.

    Thread Starter ernstwg

    (@ernstwg)

    David.

    Your question Area 1. That’s right.
    Your question Area 2.
    – Displaying post title, perhaps date and author name of the corresponding parents of those media items. Not sure if all of them.
    – A hyperlink back to the parents post would be the best option. Should be the parent post not the the post with that title.
    – In case of a link to a parent post there is no need to maintain data, which would be the case if using a custom taxonomy for media, which is benefitial.

    What I tried so far
    – mla_term_list shortcode with add_filters=any, obviously I am mixing up things ??
    – 2nd mla_gallery shortcode as in area 3, without [+link+]. Result: 5 images of the same post would lead to see the same post title 5 times.
    – Custom taxonomy together with jig filtering. Works but can easily lead to visual confusion for the user.

    exp: https://ernst-wilhelm-grueter.de/imagesearch/

    Plugin Author David Lingren

    (@dglingren)

    I have released MLA v2.95, which contains an enhanced version of an MLA example plugin that should give you the results you need. I choose this example because it already did something similar and extending it for your needs was straightforward.

    After you install and activate it your “area 2” can be generated by adding an [mla_gallery] shortcode with one additional parameter, parent_gallery.

    The shortcode must contain all of the data selection parameters that reflect the search results, e.g., taxonomy term selections and text search keywords. Then, add the parent_gallery parameter to generate a gallery of the parent posts/pages of the items selected by the other data selection parameters. Here are the instructions in the example plugin file:

    * 2) a "parent_gallery" parameter contains WP_Query parameters for a second WP_Query that selects
    *    the parent posts of the items returned by the main shortcode query, i.e., the final result is
    *    a display of the parent posts, not the Media Library items returned by the main query.
    *
    *    You can add most WP_Query parameters to the parent query, e.g.:
    *
    *    [mla_gallery parent_gallery='post_type=post,page posts_per_page=10 orderby=title order=ASC']
    *
    *    NOTE: To affect the parent query you must add the parameters INSIDE the parent_gallery value.
    

    You can use custom markup and style templates or parameters like mla_caption, columns and size to compose the parent gallery.

    To add the example plugin to your site, navigate to the Settings/Media library Assistant Documentation tab and click the “Example Plugins” button. Type “query” in the text box and click “Search Plugins” to filter the table.

    You are looking for the “MLA Parent WP_Query 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. Make sure you have the latest version, 1.02, installed.

    Once the updated example plugin is installed and active you can add the parent_gallery parameter to your [mla_gallery] shortcode(s).

    I am marking this topic resolved, but please update it if you have problems or further questions regarding the new example plugin and feature. Thanks for inspiring this MLA enhancement!

    Thread Starter ernstwg

    (@ernstwg)

    Hi David. Many thank for all your effort. I’ve a bad conscience. I didn’t came back to you for a long time and even now I am not focussed enough. I will pickt his up and will come back to you at a later stage

    Again thank you for all your effort, Ernst Wilhelm

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Extension of search capabilities’ is closed to new replies.