> Why do you need (current and (other ?

I need some way to tell Aiki how to render a page number for the current
page I'm on, versus a link for another page.

<li class="active"><a href="#">2</a></li>

VERSUS

<li><a href="?page=3">3</a></li>

Or I need to give Aiki a template for rendering a page number, e.g.:
"<li><a href="[link]">[num]</a></li>"

and then tell it which class to use for the active page number, e.g.
"active"

And yeah, maybe even tell it how many pages to show, such as '10' to
only show the next and previous five pages. The default would be to show
a number for all the pages.

-- 
You received this bug notification because you are a member of Aiki
Framework Admins, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/950627

Title:
  Custom pagination should let you show a series of page numbers

Status in Aiki Framework:
  Confirmed

Bug description:
  I love the custom pagination, first time I've tried it! (See
  http://aikiframework.org/wiki/Pagination#Custom_2)

  In addition to (previous( and (next( we should also add a (current(
  and (other(

  (current( should hold the markup for the current active page.

  (other( should hold the markup for direct links to other pages

  In the end you should be able to write something like:

  (pagination(
  <div class="pagination">
      <ul>
      (previous(<li><a href="[previous]">Prev</a></li>  )previous)
      (current(    <li class="active"><a href="#">[currentpage] </a></li> 
)current)
     (other( <li><a href="[other]">[otherpage] </a></li> )other)
      (next( <li><a href="[next]">Next</a></li> )next)
      </ul>
      </div>
   )pagination)

  and get this output:

  <div class="pagination">
    <ul>
      <li><a href="?page=1">Prev</a></li>
       <li><a href="?page=1">1</a></li>
      <li class="active">
        <a href="#">2</a>
      </li>
      <li><a href="?page=3">3</a></li>
      <li><a href="?page=4">4</a></li>
     <li><a href="?page=3">Next</a></li>
    </ul>
  </div>

  You should be able to leave off previous and next links altogether and
  just use current and other.

  BTW, when we use the word 'active' for links, we normally mean the
  CURRENT link you are on, not a link that leads somewhere else.

  I think the built in pagination_notactive and pagination_active should
  be switched. Aiki uses pagination_notactive for the current page you
  are on.

To manage notifications about this bug go to:
https://bugs.launchpad.net/aikiframework/+bug/950627/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework.admins
Post to     : aikiframework.admins@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework.admins
More help   : https://help.launchpad.net/ListHelp

Reply via email to