Thanks for your feedback and for your question. Creating an [mla_gallery] for your PDF documents is straightforward.
To create a grid display with the file name as a caption you can start with something like this:
[mla_gallery attachment_category=some-term post_mime_type=application/pdf size=icon mla_caption="{+file_name+}"]
Where some-term is the “slug” of the term you want to filter the display by.
To display “a PDF icon with the text of the filename to the right of it, all of these in 2 columns” you can create a custom markup template along the lines of “A Table-based Style and Markup Template Example”, which you can find in the Settings/Media Library Assistant Documentation tab.
I hope that gets you started on displaying PDF documents using [mla_gallery] you can find many other parameters for the shortcode in the Documentation tab.
I am marking this topic resolved, but please update it if you have any problem or further questions regarding the display of PDF items in your Media Library. Thanks for your interest in the plugin.
Thank you for your reply. Unfortunately, in scenario 1, my filename doesn’t show-up under the icon. There is no text.
Thanks for your reply; I’d like to get some additional details so I can help you get the results you want.
You wrote “in scenario 1“; is that “PDF icon with the text of the filename to the right of it” or the example I gave you, “a PDF icon with the text underneath”? Can you include the complete text of the shortcode you are using?
If you are working with the “table-based” example and need more specific help, let me know.
Thanks for any additional information you can give me.
Here’s what I’m using:
[mla_gallery attachment_category=some-term post_mime_type=application/pdf size=icon mla_caption="{+file_name+}"]
I have changed some-term to my own att-category name that I have applied to the PDFs.
I only see the PDF icons, I don’t see any text.
Thanks for posting your shortcode, which looks pretty similar to the example I gave you; identical, in fact.
On my test system the example works flawlessly (of course). When you say “I don’t see any text“, does that mean the caption area below the icon is blank, or does it contain the {+file_name+} literal?
Could you try something like mla_caption="File: '{+file_name+}'" and tell me if it is still blank, or what it looks like?
If the page is available on the Internet, could you post a link to it so I can see the HTML source it generates?
Thanks for your patience; this is an odd issue.
No, no change. And I don’t see any type of text, it is still blank.
Unfortunately the site is not yet public.
Thank you for your help with this. I really would like to make this work.
Also I notice when you click the pdf icon, it opens what looks like a blog post with the pdf link text on it.
How strange!
You can add link=file to your shortcode if you want to go directly to the PDF document. The default, link=page goes to the Media Page/Attachment Page for the item.
Can you use your browser’s “View Source” to capture the complete HTML code of the page? If so, give me your contact information and I will respond with an address you can use to send it to me. You can use the Contact Us page at our web site:
Fair Trade Judaica/Contact Us
Thanks for working with me on this issue.
It has been a month since my last post to this topic. Since I have not heard anything further from you I assume you have found a solution for your application.
I am marking this topic resolved, but please update it if you have any problems or further questions regarding the PDF captioning aspects of your application. Thanks for your interest in the plugin.