All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Pagination of an Alphabetical List

Podzol 6 Apr 2011 23:39 question, complete

Hello,
I am using Low Alphabet on a long list of names that will require pagination. The problem is that the paginate ads a "P2" or "P3" onto the url, which Low Alpha interprets as sort by the letter P, and I get no pagination.

How do I fix this?
Thank you.

Replies

  1. Low 7 Apr 2011 06:40

    I just tested it and it should work. What's the template code you're using? And are you using uppercase or lowercase letters in the URI?

  2. Podzol 7 Apr 2011 11:51

    Here is the code. I thought that I had it fixed, but it still does it.
    The low url is generated in lowercase, and the pagination in upper.

    [code]
    {exp:low_alphabet:entries channel="contacts" alpha_field="last" numbers="after" limit="8" group_numbers="yes" numbers_label="#" alpha_filter="{segment_3}" sort="asc" orderby="low_alphabet_field" disable="categories|member_data"}




    • {first} {last}

    • {position}

    • {institution}

    • {e_mail}

    • {phone}

    • {website}




    {paginate}

    Page {current_page} of {total_pages} pages. {pagination_links}

    {/paginate}
    {/exp:low_alphabet:entries}
    [/code]

  3. Low 7 Apr 2011 14:00

    I think I know what's going on. Hang tight, I'm working on a fix as we speak.

  4. Podzol 7 Apr 2011 14:44

    the issue seems to be that Low Alpha and pagination are both relying on the same url segment. What I'll do is make Low Alpha rely on a different segment. That should fix it.

    I'll get back to you when I do this, unless you have a solution in hand, don't spend much time on it. I appreciate your help. I have to buy another license for another site!
    Blake

  5. Low 7 Apr 2011 14:47

    The issue revealed a deeper rooted problem, which I'm fixing right now. I'd like to send you an updated version to try. Where can I send that to?

  6. Podzol 7 Apr 2011 14:57

    Thanks!
    I'm always the one who brings up deeper issues. - sigh -
    ketchum@psu.edu
    I appreciate your help.

  7. Podzol 7 Apr 2011 15:14

    Yes, the new version works like a charm. Thank you!
    Blake

  8. Low 7 Apr 2011 15:26

    Cool, glad it's working now. I made v1.0.1 public now.

  9. Frost 16 Dec 2011 23:58

    Hello,

    I'm using combination of structure / zoo triggers / low alphabet..

    All is working very nicely until i try and use pagination in low tags..

    dev page:
    http://jameswilsonjennings.com/filmlo...

    Is it sometihng i'm not doing in template of is it somethings thats asking too much?!

    Kind regards,

    James.


    <style>#content{position:relative;}</style>

    <div style="float:left;font-size:14px;margin-right:5px;">Sort by film title:</div>

    <div id="all-films-search" style="position:absolute;top:60px;right:25px;>

    <div id="search">
    {exp:search:simple_form channel="films" result_page="site/search"}
    <input type="submit" value="search" class="submit">
    <input type="text" name="keywords" id="keywords" value="" size="18" maxlength="100">
    {/exp:search:simple_form}
    </div>

    </div><!--END ALL FILMS SEARCH -->

    <div id="all-films-categories-dropdown">

    </div>

    {exp:low_alphabet:azlist channel="films" numbers="before" group_numbers="yes" numbers_label="#" {triggers:entries}}
    {if count == 1}<ul class="a-z-films">{/if}
    <li><a href="{path="all-films/{if triggers:segment_2=="sortby"}sortby/{triggers:segment_3}/{/if}{low_alphabet_url}"}" title="Films: {low_alphabet_entries}">{low_alphabet_label}</a></li>
    {if count == total_results}</ul>{/if}

    {/exp:low_alphabet:azlist}

    {if triggers:segment_3 =="" AND triggers:segment_2 ==""}<h2>To filter results click <span class="blue">A-Z</span> and or a <span class="blue">Genre<span></h2>{/if}

    {if triggers:segment_2!="" AND triggers:segment_3 ==""}<h2>Showing films starting with <span class="blue caps">'{triggers:segment_2}'</span> {triggers:entries_title}</h2>{/if}

    {if triggers:segment_2 =="sortby" AND triggers:segment_4 ==""}<h2>Showing all films in genre <span class="blue">{triggers:entries_title}</span></h2>{/if}

    {if triggers:segment_2 =="sortby" AND triggers:segment_4 !=""}<h2>Showing all films in genre <span class="blue">{triggers:entries_title} </span>starting with the letter <span class="blue caps">{triggers:segment_4}</span></h2>{/if}

    {exp:low_alphabet:entries channel="films" orderby="title" sort="asc" numbers="before" group_numbers="yes" numbers_label="#" alpha_filter="{triggers:last_segment}" disable="member_data" dynamic="no" paginate="both" limit="21" {triggers:entries}}

    <div class="film-box shadow2">
    <a href="{url_title_path="film-details"}"><img src="{film-cover}" alt="{title}"/></a>
    <div class="title">{title}<br />(<a href="{path="all-films/sortby/{categories}{category_url_title}{/categories}"}">{categories backspace="2"}{category_name}, {/categories}</a>)<br /><br />from<br /><Span style="font-size:22px;">{film-price} </span><a href="{url_title_path="films/film-details"}">Show Film</a></div>

    </div>

    {paginate}
    <p>Page {current_page} of {total_pages} pages {pagination_links}</p>
    {/paginate}

    {/exp:low_alphabet:entries}

  10. Low 19 Dec 2011 08:34

    Hey James,

    Can you try and see if the above code would give you paginated entries if you'd use the channel:entries tag instead of the low_alphabet:entries tag?