Thank you for the question and for taking the time to include the source text of your shortcode; that is very helpful.
When you say “a pagination bar for my pdf files“, I understand that to mean that you want to divide the [mla_gallery]
display into pages and include controls to let users move among the pages of gallery output. If that is what you mean, MLA can help. You can add one or two additional [mla_gallery]
shortcodes to the page that will display the pagination bar you need.
To display one set of controls you can simply add a second shortcode to your post/page:
[mla_gallery attachment_category='revue-de-presse-2' post_mime_type=all link=file mla_style=leftalign posts_per_page=10]
[mla_gallery attachment_category='revue-de-presse-2' post_mime_type=all posts_per_page=10 mla_output="paginate_links,prev_next"]
I have added posts_per_page=10
to your original shortcode, to divide the gallery into pages of ten items each. I have added a second shortcode to generate the pagination bar. The mla_output="paginate_links,prev_next"
parameter changes the output from gallery items to pagination controls and selects the type of controls.
The attachment_category='revue-de-presse-2'
and post_mime_type=all
parameters are the same for both shortcodes. This is important because the same set of items must be selected for both. The pagination bar does not display items, so the link=file
and mla_style=leftalign
parameters are not needed in the second shortcode.
To display separate “previous page” and “next page” controls you can use two additional shortcodes:
[mla_gallery attachment_category='revue-de-presse-2' post_mime_type=all link=file mla_style=leftalign posts_per_page=10]
<div style="clear: both; float: left">
[mla_gallery attachment_category='revue-de-presse-2' post_mime_type=all posts_per_page=10 mla_output="previous_page,first" mla_link_text='←' mla_rollover_text="Previous/first page"]
</div>
<div style="float: right">
[mla_gallery attachment_category='revue-de-presse-2' post_mime_type=all posts_per_page=10 mla_output="next_page,last" mla_link_text='→' mla_rollover_text="Next/last page"]
</div>
There are many parameters you can add to the pagination shortcodes to change the display. You can find more information in the “Support for Alternative Gallery Output, e.g., Pagination” section of the Settings/Media Library Assistant Documentation tab.
I hope that gets you started on adding controls to your post/page to paginate your gallery. I am marking this topic resolved, but please update it if I have not understood your question or if you have other problems/questions about gallery pagination. Thank you for your interest in the plugin.