Thanks for your question. As I recall, you are composing an [mla_gallery]
for PDF documents; is that right?
There is an earlier topic along similar lines:
link to the pdf on the title and the icon
However, things have improved since that topic and I can give you an easier solution to your needs. If you enclose your [mla_gallery]
in <code></code>
tags you can use the mla_caption
parameter to get what you want. Try something like this:
<code>[mla_gallery post_parent=all post_mime_type="application/pdf" link=file size=icon mla_caption='<a href="{+file_url+}" target="_blank">{+title+}</a>' mla_target="_blank"]</code>
If you want to use the mla_viewer=true
to show document thumbnails the solution is somewhat different:
<code>[mla_gallery post_parent=all post_mime_type="application/pdf" link=file mla_viewer=true mla_image_alt='{+title+}' mla_caption='<a href="{+file_url+}" target="_blank">{+title+}</a>' mla_target="_blank"]</code>
You must add the mla_image_alt
parameter to override the default, which is the caption, since your mla_caption
contains HTML markup that isn’t allowed in the HTML alt
attribute.
I hope the above alternatives get you the results you want. I am marking this topic resolved, but please update it if you have problems or further questions regarding a “clickable caption” for your [mla_gallery]
display.