Thanks for your update. I’ve developed a modest example of the approach I outlined that you can play with. Create a new post/page and (in the Code Editor) add this content:
<h3>The Gallery</h3>
[mla_gallery]
post_parent=all post_mime_type=application/pdf
numberposts=3 orderby=date order=desc
columns=3
mla_page_parameter=mla_page
mla_link_href="{+page_url+}?document_id={+attachment_ID+}&mla_page={+request:mla_page+}"
[/mla_gallery]<br />
[mla_gallery]
post_parent=all post_mime_type=application/pdf
numberposts=3 orderby=date order=desc
mla_output="paginate_links,prev_next"
mla_page_parameter=mla_page
mla_link_href="{+page_url+}?mla_page={+request:mla_page+}"
[/mla_gallery]
<h3>The Document</h3>
[mla_gallery]
post_parent=all post_mime_type=application/pdf
ids="{+template:({+request:document_id+}|1)+}"
mla_alt_ids_name=url mla_alt_ids_value="{+filelink_url+}" mla_alt_shortcode=pdf-embedder
[/mla_gallery]
There are three [mla_gallery]
shortcodes. The first creates a gallery display of document thumbnails, the second creates pagination controls that let you move through all the documents and the third displays the PDF Embedder for a selected document. Simply click on one of the document thumbnails to load it in the embedder.
You can change the size of the gallery items by adding, for example, size=medium
to the first shortcode and reducing the numberposts
and columns
values.
If you want a selected document to remain in the PDF Embedder while you page through the gallery you can remove the mla_link_href="{+page_url+}?mla_page={+request:mla_page+}"
parameter from the second shortcode.
Other variations are possible, but this gives you an idea of what’s possible. Enjoy!