• Resolved amm82

    (@amm82)


    Hi. Does MLA support wildcards in either of these situations?

    batch edit Menu Order
    if I’m only looking at images with tag=tag1, could I sort this list by Caption, and enter <<wildcard>> into Menu Order to get them numbered in that order (because I can’t sort galleries by caption)

    batch edit Description

    for example, I could enter into description <<title>> or <<caption>>

    is there another way to do either of these? is there documentation?
    thanks

    https://ww.wp.xz.cn/plugins/media-library-assistant/

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

    (@dglingren)

    Thanks for your questions.

    Regarding “batch edit Menu Order“, you can sort the [mla_gallery] results by caption or by “excerpt”, the default field from which the caption is taken. Simply add orderby=caption or orderby=excerpt to your shortcode.

    If you have some other reason for using Menu Order, you can use this approach:

    1. Go to the Media/Assistant submenu
    2. Filter your display by Tag. Click on a value in the Tags column or use the dropdown box at the top of the table.
    3. Click on the “Caption” column header to sort the display by caption.
    4. Use the Quick Edit rollover action to assign a menu order value to each of the items.

    That is the best approach possible in the current MLA version. There is no automatic numbering feature that can do this in a more automated way.

    Regarding “batch edit Description“, I regret that there is nothing in the current MLA version that supports this. There are ways to use other information such as the file name in the Bulk Edit area, but title and caption are not in the current list. You can see the complete list in the “Data sources for custom field mapping” section of the Settings/Media Library Assistant Documentation tab.

    I will add these values and a few others in my next version, which is due out shortly. I will leave this topic unresolved for now and post an update when the next version is released. Thanks for your interest in the plugin, for your patience and for inspiring an improvement in the “data sources” feature.

    Thread Starter amm82

    (@amm82)

    thanks for your thorough response.

    just so we’re clear, regarding Description, it would be helpful to be able to map both Title and Caption together to Description. That way, I could quickly populate description without manually entering html for each. Description appears in my lightbox.

    In my specific case, if this were possible I would first add Title and Caption on separate lines, then I would go into each image Description and enter further details.

    Another wrinkle: I begin all of my Descriptions with a linebreak so that the first line of text begins below nav controls in the lightbox. I guess I could add clear:both to the nav to accomplish the same thing.

    The end result I’m going for is
    Description:
    linebreak
    <<title>>(unique css class?)linebreak
    <<caption>>(class?)linebreak
    additional manual entry here.linebreak
    linebreak

    This might be a common use case. Think of an art gallery
    title-year
    artist
    medium
    blurb

    thanks again

    Plugin Author David Lingren

    (@dglingren)

    Thank you for the additional explanation and detailed examples; very helpful.

    I have enhanced the MLA Bulk Edit function to accomplish your goal. When the new version is released (soon), you can enter a Content Template in the Description text area like this one:

    template:<br><span class="unique css class">[+post_title+]</span><br>([+post_excerpt+]|&nbsp;)<br>Manual entry here.<br>&nbsp;<br>

    You can find more Content Template information in the Documentation tab. Note, for example, the ([+post_excerpt+]|&nbsp;) element which fills in missing captions with a non-breaking space.

    I will post an update and resolve this topic when the next version goes out.

    Thread Starter amm82

    (@amm82)

    incredible! I know we will get a lot of use out of this. We will use it to build several galleries of student artwork each year. Thank you very much! A donation is coming your way.

    Plugin Author David Lingren

    (@dglingren)

    I have released MLA v1.90, which contains the enhanced access to fields like post_title and post_excerpt. You can now try out the Content Template I outlined above in your Bulk Edit area.

    Once you are happy with the template and results, you can go to the Settings/Media Library Assistant IPTC/EXIF tab and add the template to the EXIF/Template text box for the Description field. Then, you can simply click the “Map IPTC/EXIF Metadata” button in the Bulk Edit area to apply the rule (and any other rules you’ve defined). That’s easier than typing the template into the Bulk Edit Description field each time you want to run it.

    I hope this gets you the results you need. I am marking this topic resolved, but please update it if you have any problems or further questions about Content Templates and mapping rules. Thanks for you interest in the plugin and for motivating an enhancement.

    Thread Starter amm82

    (@amm82)

    thanks again. I look forward to using it and I’ll ask my company to spare a small donation to you.

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

The topic ‘wildcards?’ is closed to new replies.