<mt:PagerBlock>

A block tag iterates from 1 to the number of the last page in the search result. For example, if the limit was 10 and the number of results is 75, the tag loops from 1 through 8.

The page number is set to __value__ standard variable in each iteration.

The tag also sets __odd__, __even__, __first__, __last__ and __counter__ standard variables.

Example:

    M
    <MTPagerBlock>
      <MTIfCurrentPage>o<MTElse><a href="<MTPagerLink>">o</a></MTIfCurrentPage>
    </MTPagerBlock>
    vable Type

produces:

    "Mooooooooovable Type" where each "o" is a link to the page.

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 16:

=back without =over

This page was last updated on 1969-12-31, 16:00.  

Leave a note

Have a question, please use the MT Forums. Notes sumbitted here should pertain to tips & hints regarding documentation. Your note may be removed once it's contents has be integrated into the body of the page.