Gossamer Forum
Home : Products : DBMan : Customization :

Post deleted by yobanlong

Quote Reply
Post deleted by yobanlong
Quote Reply
Re: Numbering result list in short mod In reply to
Do you have the following codes ++i; after the following codes:

Code:

&html_record(&array_to_hash($_, @hits));


in the sub html_view_success routine.

Regards,

Eliot Lee
Quote Reply
Re: Numbering result list in short mod In reply to
Yes, I have that code included....

The numbering of the lines on the first result page is fine, eg. 1 to 10. On the next result page (page 2 of, say, 5 pages) the numbering should be 11 to 20, but comes up as 1 to 10... as for every result page... This is not good :) I cant figure it out how to solve the bug. I installed the original short long mod, and the same thing happened there...

To me it seems like (in the short long view_success code) that the $i variable is set to 1 for every single result page viewed.

-Yob Angie

Quote Reply
Re: Numbering result list in short mod In reply to
Yes, the $i variable is reset to 1 with each page.

You said you had the short/long mod installed. In the mod, in sub html_record, there is a variable $record_number. Use that to print out the record number.


JPD