• Resolved hjerem

    (@hjerem)


    Hi David !

    How are you ?

    I’m closer than ever to finish the gallery I wanted.
    Although I have a last problem that I can’t solve myself.
    In fact, the pagination is broken for my gallery and I can’t find why or how to fix it.

    Here is my code:

    <form id="mla-search-form" action="." method="get">
    <div><strong>Mots clés</strong>
    [mla_term_list mla_output=checklist use_filters=true taxonomy=attachment_category mla_markup=custom-term-list-checklist parent=1911 exclude_tree=1884,1881,1882,1883,1885 show_count=true mla_option_value="{+slug+}" hierarchical=true ]</div>
    <div><strong>Hauteur</strong>
    [mla_term_list mla_output=dropdown use_filters=true taxonomy=attachment_category parent=1881 option_all_text="Toutes les hauteurs" option_all_value=all show_count=true mla_option_value={+slug+} mla_control_name=tag2 mla_item_parameter=current_tag2 ]</div>
    <div><strong>Longueur</strong>
    [mla_term_list mla_output=dropdown use_filters=true taxonomy=attachment_category parent=1882 option_all_text='Toutes les longueurs' option_all_value=all show_count=true mla_option_value={+slug+} mla_control_name=tag3 mla_item_parameter=current_tag3 ]</div>
    <div><strong>Profondeur</strong>
    [mla_term_list mla_output=dropdown use_filters=true taxonomy=attachment_category parent=1883 option_all_text='Toutes les profondeurs' option_all_value=all show_count=true mla_option_value={+slug+} mla_control_name=tag4 mla_item_parameter=current_tag4 ]</div>
    <div><strong>Couleur principale (RAL)</strong>
    [mla_term_list mla_output=dropdown use_filters=true taxonomy=attachment_category parent=1884 option_all_text='Toutes les couleurs' option_all_value=all show_count=true mla_option_value={+slug+} mla_control_name=tag5 mla_item_parameter=current_tag5 ]</div>
    <div><strong>Référence</strong>
    [mla_term_list mla_output=dropdown use_filters=true taxonomy=attachment_category parent=1885 option_all_text='Toutes les références' option_all_value=all show_count=true mla_option_value={+slug+} mla_control_name=tag6 mla_item_parameter=current_tag6]</div>
    <input id="reset" class="gold-button" name="reset" type="reset" value="Effacer" />
    
    </form>
    <h3>Résultats</h3>
    [mla_gallery]
    add_filters_to=any
    numberposts=15
    attachment_category="{+template:({+request:tax_input.attachment_category+})|'www-evp-fr'+}"
    tax_operator=AND
    mla_markup=custom-gallery
    link=download
    mla_nolink_text="Aucun résultat ne correpond à vos critères de sélection."
    [/mla_gallery]
    [mla_gallery add_filters_to=any numberposts=15 attachment_category="{+template:({+request:tax_input.attachment_category+})|'www-evp-fr'+}" mla_output="paginate_links,prev_next"]
    <input id="base-image-download" class="gold-button" style="float: right;" type="button" value="Télécharger les images sélectionnées" /><input id="base-image-clear" class="gold-button" style="float: left;" type="button" value="Effacer la sélection" />

    When I select multiple filters, pagination is broken and doesn’t reflect the results.
    What have I done wrong?

    Thanks,
    Best regards.

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

    (@dglingren)

    Good to hear from you!

    I believe your pagination problem can be corrected by adding tax_operator=AND to your second [mla_gallery] shortcode (pagination controls). The data selection for both [mla_gallery] shortcodes must be identical for the results to be consistent.

    In the process of testing your shortcodes I found and fixed some problems in the MLA UI Elements Example plugin. I don’t think they affect your specific application but I will be releasing an MLA update tonight and you should update your example plugin if you continue to have problems.

    Thread Starter hjerem

    (@hjerem)

    Thanks for this quick answer !

    I found the error myself, you are right! It’s sad I didn’t see it before…
    I sent you an email with few questions, did you receive it ?

    • This reply was modified 7 years, 11 months ago by hjerem.
    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update with the good news. I am marking this topic resolved.

    I have also responded to your email. Thanks for your patience in awaiting my response.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pagination broken’ is closed to new replies.