Row indexing with pagination

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gayatrib
    New Member
    • Mar 2010
    • 4

    #1

    Row indexing with pagination

    I am using smarty template where i have done pagination.Whil e indexing the section i used {$smarty.sectio n.aa.index+1}, where aa is name of the section. This is ok for one page only.But when it come to next page it restarts from 1.

    page1...
    S.N. Data
    1 choco
    2 apple
    3 banana
    page2..
    S.N. Data
    1 orange
    2 pinapple
    3 Guava

    I want to show the index number which must continue from 1 and end when the number of data ends although their may be pagination.

    page1...
    S.N. Data
    1 choco
    2 apple
    3 banana

    page2...
    S.N. Data
    4 orange
    5 pinapple
    6 Guava

    Please, help.
Working...