• Resolved fcujorick2

    (@fcujorick2)


    Hi guys,

    First of all great plugin, we were looking for something like this for a few days now.
    I just added 42 images, but when I do I only can make it a standard, like XXX Stadskaart poster.

    Is there a way to replace a part of the text, like the old text is: Amsterdam Amazon City Map, to bulk edit it into Amsterdam Amazon Stadskaart poster?

    For example, I just added; https://www.kunstinkaart.nl/product-categorie/nederlands/driebergen-rijsenburg-stadskaart-posters/

    All images have the samen title right now, which is fine but not great for Seo (now I have 42 images with the samen seo parts, so google will see this as duplicate.

    So summarizing I want to change this:

    Amsterdam Amazon City Map
    Amsterdam Azure City Map
    Amsterdam Black City Map
    ..

    Into
    Amsterdam Amazon Stadskaart Poster
    Amsterdam Azure Stadskaart Poster
    Amsterdam Black Stadskaart Poster
    ..

    The page I need help with: [log in to see the link]

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

    (@dglingren)

    Thanks for the kind words and for your question. If I understand your goal correctly you can use the Media/Assistant Bulk Edit area and a Content Template to make the replacements you need.

    First, select the items you want to change. You can use the “Search Media” box on the Media/Assistant screen to do this. For your example, enter “City Map” (with the quotes) in the box and click “Search Media”. You might want to uncheck the Description and File checkboxes below the text box to limit the search to the Title field. That will give you the items you want to change.

    Next, check the box to the left of the “ID/Parent” column header to select all the items in the table (or select one or two items to experiment on). Then select “Edit” from the Bulk Actions dropdown control and click “Apply” to open the Bulk Edit area. Find the Title text box and enter your Content Template:

    template:[+post_title,str_replace( 'City Map', 'Stadskaart Poster' )+]

    Finally, click the “Update” button in the lower-right corner of the area.

    You can find more information in the “Content Templates” and “Field-level substitution parameters” sections of the Settings/Media Library Assistant Documentation tab.

    I hope that gives you the information you need to accomplish your task. I am marking this topic resolved, but please update it if you have problems or further questions about the above suggestions. Good luck with your application and thanks for your interest in the plugin.

    Thread Starter fcujorick2

    (@fcujorick2)

    Hi David,

    Thank you for your answer,

    I managed to fix it fit the code:
    template:[+post_title,str_replace( ‘City Map’, ‘Stadskaart Poster’ )

    Is there also a template for adding a additional word, append, like some items had the title:

    Amsterdam Amazon -> Has to be ; Amsterdam Amazon stadskaart poster

    Thank you!

    Plugin Author David Lingren

    (@dglingren)

    Thanks for confirming that my suggestion worked for you.

    You can use Content Templates for all sorts of changes; I encourage you to read through the Documentation. For the specific change you posted (appending a word or phrase), you can code something like:

    template:[+post_title+] stadskaart poster

    Hi David, my name is Trace, I was wondering if you could help me out. I am in a time crunch to get this to work and i am missing something somewhere.

    Our website is wordpress. I liked your plugin and was able to utilize Media Library Assistant v2.70 and the demo i created is working except for the search feature. I am unable to get my search feature to search only the pdf in the media folder. Here is my code below. I am sure it is something simple, but I can’t seem to nail it down.

    I want the admin orders to be listed as you can see (there will be hundreds soon). However they also need to be searchable via search box and show up on results page. Can you help me? https://flcourts18.org/?page_id=4762

    —————

    [su_box title=”Search by Circuit, County, Division, Judge or Case Number” style=”default” box_color=”#333333″ title_color=”#FFFFFF” radius=”9″ class=”background-image: url(‘https://flcourts18.org/wp-content/themes/catch-responsive-pro/images/body-bg.jpg’)”]

    <form id=”mla-search-form” action=”.” method=”post”>
    <input id=”mla-search-box” name=”search-string” type=”text” value=”” /> <input id=”submit” name=”submit” type=”submit” value=”Search” />
    </form>

    [mla_gallery s=”{+template:({+request:search-string+}|a-bad-term)+}” mla_nolink_text=”Enter a keyword to search administrative orders.”]

    <form id=”mla-search-form” action=”.” method=”post”></form>[/su_box]

    [mla_gallery columns=1 post_mime_type=application/pdf post_parent=all size=thubmnail mla_itemwidth=100 link=file listtag=ol mla_caption=”{+description+}”]

    [mla_gallery mla_terms_phrases=”{+template:({+request:search-string+}|a-bad-term)+}” mla_terms_taxonomies=attachment_tag posts_per_page=12 mla_output=”paginate_links,prev_next” mla_link_href=”{+page_url+}?search-string={+request:search-string+}”]

    ——————-

    Thank you so much.

    Trace

    Plugin Author David Lingren

    (@dglingren)

    @tmacgregor,

    Thanks for your question and for posting the complete source text of your page and shortcodes; very helpful. Your question deserves its own support forum topic, but I will answer it here for your convenience.

    Your page has a search form and three [mla_gallery] shortcodes.

    1. The first shortcode does not match any items because of its s= parameter, so it displays the “Enter a keyword… ” mla_nolink_text value.
    2. The second shortcode displays all of the PDF documents in the Media Library because it has no other filtering parameters.
    3. The third shortcode displays page navigation controls. It has an mla_terms_phrases filter.

    It looks like your intent is to display all of the PDF documents (or the first page of documents) when the page loads, and a filtered set when one or more keywords are entered that match terms assigned in the attachment_tag taxonomy. Is that right?

    If I understand your application correctly, a few changes should get you the results you need. First, you only need two shortcodes; one for the items and one for the page controls. Second, both of the shortcodes must have exactly the same data selection parameters, so the navigation controls match the gallery display. Finally, the action="." won’t work on your site because you are not using “pretty permalinks”. The “.” argument captures just the link portion of the URL, https://flcourts18.org/; it does not add the ?page_id=4762 query argument that specifies the page.

    Here is an alternative that should work for you:

    [su_box title="Search by Circuit, County, Division, Judge or Case Number" style="default" box_color="#333333" title_color="#FFFFFF" radius="9" class="background-image: url('https://flcourts18.org/wp-content/themes/catch-responsive-pro/images/body-bg.jpg')"]
    <form id="mla-search-form" action="https://flcourts18.org/?page_id=4762" method="post">
    <input id="mla-search-box" name="search-string" type="text" value="" />&nbsp;<input id="submit" name="submit" type="submit" value="Search" />
    <p>
    Enter a keyword to search administrative orders.
    </p>
    </form>[/su_box]
    
    [mla_gallery]
    mla_terms_phrases="{+template:({+request:search-string+}|a-bad-term)+}"
    mla_terms_taxonomies=attachment_tag
    post_mime_type=application/pdf
    post_parent=all
    posts_per_page=12
    columns=1
    size=none
    mla_itemwidth=100
    link=file
    listtag=ol
    mla_caption="{+description+}"
    [/mla_gallery]
    
    [mla_gallery]
    mla_terms_phrases="{+template:({+request:search-string+}|a-bad-term)+}"
    mla_terms_taxonomies=attachment_tag
    post_mime_type=application/pdf
    post_parent=all
    posts_per_page=12
    mla_output="paginate_links,prev_next"
    mla_link_href="https://flcourts18.org/?page_id=4762&search-string={+request:search-string+}"
    [/mla_gallery]
    

    I have used the alternative “enclosing shortcode” syntax to break the shortcode up over several lines and make it easier to read and modify. My implementation displays an empty gallery when the page loads. If you want to display all documents, change the mla_terms_phrases parameter (in BOTH shortcodes) to:

    mla_terms_phrases="{+template:({+request:search-string+})+}"

    Give this alternative a try and open a new support topic if you have any problems or further questions regarding the changes I’ve made. Thanks for your interest in the plugin.

    • This reply was modified 6 years, 9 months ago by David Lingren.

    thank you david, i still have an issue with this and i started another topic as you suggested at https://www.ads-software.com/support/topic/displaying-pdf-documents/

    thanks again

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘All images has the same title, alt, description’ is closed to new replies.