Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

pagination in pseudo_sql

#211

A possible syntax could be:


<r:notes in='site' limit='20' paginate='true'>
  next, previous links: <r:link page='previous'/> <r:link page='next'/>
  page numbers: <r:link page='numbers'/>
</r:notes>

This would use the DOM to generate a unique params key "notes32_p" or "notes_p" for pages in the url.

The link could use the "update" params with a block for ajax.

Reported by Gaspard Bucher · September 4th, 2008 @ 10:25 AM

State: resolved
Milestone: 1.0
Assigned to: Gaspard Bucher Gaspard Bucher

Activity

  1. Gaspard Bucher
    Gaspard Bucher
    • State changed from new to open
    • Tag changed from enhancement, zafu, zena to enhancement, started, zafu, zena

    Started implementation.

    Syntax will be closer to

    {{{ <r:notes in='site' limit='20' paginate='p'> next, previous links: <r:link page='previous'/> <r:link page='next'/> page numbers: <r:link page='numbers'/> </r:notes> }}}

    September 29th, 2008 @ 10:07 PM

  2. Gaspard Bucher
    Gaspard Bucher

    (from [e0ed571c83b3e87e630da49e1948974099307d5b]) Implemented basic pseudo_sql pagination. References [#211 pagination in pseudo_sql]. With this simple implementation you can write "nodes in site limit 23 paginate param:p". Now it's time to display page numbers and do clever tricks with page counts. http://github.com/zena/zena/comm...

    October 1st, 2008 @ 05:29 PM

  3. Gaspard Bucher
    Gaspard Bucher

    (from [e46da9d352fe32980aca10b5f02f7aa45e5ddf42]) Implemented "find='count'" option for pseudo_sql. References [#211 pagination in pseudo_sql]. http://github.com/zena/zena/comm...

    October 1st, 2008 @ 05:29 PM

  4. Gaspard Bucher
    Gaspard Bucher

    (from [195958237d14f58d97fc9fd9f90b42a2c3949e21]) Implemented pagination variables ("KEY_count", "KEY"). Started to implement pagination links. Refs [#211 pagination in pseudo_sql]. http://github.com/zena/zena/comm...

    October 1st, 2008 @ 05:29 PM

  5. Gaspard Bucher
    Gaspard Bucher

    (from [ee76a200b016a797c8ffc879f3e23f3e5b89f103]) Improved [link] to handle arbitrary url parameters (use <r:link foo='blah[id]'/>) with dynamic value parsing. All this to finally enable pagination. Refs [#211 pagination in pseudo_sql]. http://github.com/zena/zena/comm...

    October 1st, 2008 @ 05:29 PM

  6. Gaspard Bucher
    Gaspard Bucher

    (from [877b10da693a22d260f31d18a683c38589664e09]) Finished implementing pagination (without ajax and page numbers list). Refs [#211 pagination in pseudo_sql]. http://github.com/zena/zena/comm...

    October 1st, 2008 @ 05:29 PM

  7. Gaspard Bucher
    Gaspard Bucher

    (from [865f2478819e96c692dd3d52438d6bac606809fa]) Implemented remote update for pagination ([link] tag). Refs [#211 pagination in pseudo_sql]. http://github.com/zena/zena/comm...

    October 1st, 2008 @ 09:01 PM

  8. Gaspard Bucher
    Gaspard Bucher
    • State changed from open to resolved

    (from [12cf2739f4d8edb608a1c28196bc47a8cb181797]) Finished implementing pagination (page numbers list). [#211 pagination in pseudo_sql state:resolved]. http://github.com/zena/zena/comm...

    October 3rd, 2008 @ 06:47 PM

  9. Gaspard Bucher
    Gaspard Bucher
    • Tag changed from enhancement, started, zafu, zena to enhancement, zafu, zena

    done.

    October 3rd, 2008 @ 08:43 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.