• Resolved cornel anghel

    (@veteranocean7)


    Hi, recently I started to learn about wordpress and more recently I arrived at the Media Library Assistant plugin, with which I try to get a slide show of pdfs, displayed through the plugin PDF Embeder …

    Here’s the shorcode I use :

    [mla_gallery post_parent=all numberposts=1 columns=1 orderby=date order=desc post_mime_type=application/pdf mla_alt_ids_name=url mla_alt_ids_value='{+filelink_url+}’ mla_alt_shortcode=pdf-embedder]

    how can I display in the same window created by PDF Embeder, one at a time each pdf found, for 10 seconds?

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

    (@dglingren)

    Thanks for your question. PDF Embedder is a great plugin I’ve been recommending for some time.

    I did a bit of research and reviewed the PDF Embedder documentation. I regret that I cannot think of a way to easily adapt PDF Embedder to display a “gallery” or slide show containing more than one document.

    The shortcode you listed in your post selects the most recent PDF document from your Media Library and passes the URL for the document on to the [pdf-embedder] shortcode. That latter shortcode generates HTML for the document and downloads JavaScript files implementing a “viewer” to display the document, let the viewer step through the pages and so forth. There are no features I can find for swapping out one document for another once the post/page is displayed.

    It might be possible to create a gallery or slideshow display of the document thumbnail images and, if a user clicks on the thumbnail image, open the corresponding document in a PDF Embedder viewer. If that would be of interest I can investigate further.

    I regret the news is not better, but I am marking this topic resolved because the question has been answered. Please update the topic if you would like me to have a look at the thumbnail gallery alternative. Thanks for your understanding and your interest in MLA.

    Thread Starter cornel anghel

    (@veteranocean7)

    thanks for your answer.
    thumbnail images are not clear enough to read in the document… or can be ?… because if they could be comparable, then the idea is not bad and the shorcode MLA already use it …

    Here’s the shorcode I was talking about:
    [mla_gallery post_mime_type=application/pdf post_parent=all link=file size=icon mla_caption=”{+title+}” orderby=date order=desc]

    , but it still remains the initial problem that they will not be able to view in the same window created by PDF_Embedder

    Plugin Author David Lingren

    (@dglingren)

    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to create a slide show of pdfs’ is closed to new replies.