• Resolved lagarta

    (@lagarta)


    Hello David,

    Thank you for the great plugin. I encounter the following problem: when I use mla_output in the code, no data appears. For example: when I use the mla_output=paginate_links to display my gallery only the pagination numbers appear and the images disappear. I turned of all other gallery plugins that might make a conflict, but still the same. Also for a list of pdf’s, when I use mla_output=list the whole list disappears. Do you have any idea?

    Best,
    Edith

    https://www.ads-software.com/plugins/media-library-assistant/

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

    (@dglingren)

    Thank you for the kind words and for your questions.

    The mla_output parameter lets you choose between a gallery display and several types of pagination controls. Each [mla_gallery] shortcode can generate either a gallery display or pagination controls, but only one or the other. To get the results you want you need two [mla_gallery] shortcodes. The “MLA Gallery Examples” section of the Settings/Media Library Assistant Documentation tab includes this simple example:

    A Paginated Gallery

    If your gallery display includes a large number of items it may be useful to divide the display into “pages” with a fixed upper limit of items per page. The Support for Alternative Gallery Output, e.g., Pagination section explains several ways to do that; here is one example:

    [mla_gallery attachment_category=big-dog posts_per_page=12]
    
    [mla_gallery attachment_category=big-dog posts_per_page=12 mla_output="paginate_links,prev_next"]

    Put both of these shortcodes on a post or page to display a paginated gallery. The first [mla_gallery] displays the images assigned to attachment_category=big-dog and displays a maximum of 12 images at once. The second [mla_gallery] has exactly the same data selection parameter and posts per page parameter; that’s essential to match up with the first shortcode. It adds one more parameter, mla_output. This parameter changes the display from a set of images to a set of pagination controls.

    MLA will add and manage a “current page” parameter of its own so the two shortcodes stay in synch as you navigate from page to page. That’s all there is to it.

    There are additional examples in the “Support for Alternative Gallery Output, e.g., Pagination” section of the Documentation.

    You wrote “when I use mla_output=list the whole list disappears. There is no list value for the mla_output parameter. I am not sure why the whole list disappears, but if you post the entire source text of the [mla_gallery] shortcode you are using I can give you some guidance. You can also find quite a bit of information in this earlier topic and the topics it links to:

    Simple list

    I hope the above suggestions help you get the results you need. I am marking this topic resolved, but please update it if you have any problems or further questions regarding pagination and PDF lists. Thanks for your interest in the plugin.

    Thread Starter lagarta

    (@lagarta)

    Hello David,

    Thanks for your quick respons!!

    In some more detail. When I post the following code:
    [mla_gallery attachment_category=klas3k-1516 posts_per_page=12 mla_output=paginate_links]
    I see this on my page:
    https://vrijeschoolkairos.nl/wp-content/uploads/2015/11/with-mla-output.jpg

    And when I post the following code:
    [mla_gallery attachment_category=klas3k-1516 posts_per_page=12]
    I see this:
    https://vrijeschoolkairos.nl/wp-content/uploads/2015/11/without-mla-output1.jpg

    So that’s what I mean with ‘the content disappears’. This happens in all varieties I try the mla_output and with all types of content.

    Best,
    Edith

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update and for posting the two screen shots.

    Your shortcodes are correct, but you must put both of them on your page to get a complete result. The first shortcode will generate the pagination controls and the second shortcode will generate the gallery display.

    Thread Starter lagarta

    (@lagarta)

    Aaaaaahhhh, I had never understood that!!!! Thanks a lot!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘mla_output no views’ is closed to new replies.