Wrong song numbers after using pagination

ooom
ooom
Offline
0
Hi,

in the grid which shows the songs (as a result of a search for example), in the first column of the grid the number/position of the song is show. As an example:
I use pagination which shows 20 songs (limit=20). The first page shows the numbers "1-20" for the songs. Now I would guess the second page shows the song numbers "21-40", but it shows "1-20" again. That is the error.
If you want to see a live example of this error: Look in the demo on your website ;) Click "Search songs" and then scroll in the songs.

Thanks for your help in advance!

Greetings
Michael
Responses (5)
  • Accepted Answer

    Sunday, September 12 2010, 10:40 AM - #Permalink
    0
    lets see: the pagination is CORRECT, but the numbering always starts at 1. it just means that is the result "1" of the result group you are seeing... that's all... its not an error, its just the way it is... :S

    if you see above, it says "results 16 to 31", for instance... you know what I mean?
    The reply is currently minimized Show
  • Accepted Answer

    ooom
    ooom
    Offline
    Monday, September 13 2010, 09:14 AM - #Permalink
    0
    Hi germi,

    in my eyes this is an error - but I do not want to discuss it with you - you have a different opinion I guess - but no matter. But I do not know any website which does such a numbering ;)

    But can you give me a tip where I can it implement by myself? I do not want to give up the numbering because I realize some "music charts" and therefore the numbering is important for me.

    If you want to see the current state of my website visit www.gigsong.de - you are welcome B)

    Greetings
    Michael
    The reply is currently minimized Show
  • Accepted Answer

    Monday, September 13 2010, 02:40 PM - #Permalink
    0
    hello Michael,
    if you know basic PHP and mysql it will be easy for you..
    the template is /components/com_muscol/views/search/tmpl/songs.php

    there you'll see how the data is printed out.
    there's a object called pagination, stored on $this->pagination variable

    just make some debugging on it (maybe a print_r($this->pagination) will be enough), and you'll see the variables contained on the pagination object, such as start numbering. use these to replace the default ("wrong" ;) ) numbering for the desired one

    makes sense? :)

    Germi
    The reply is currently minimized Show
  • Accepted Answer

    ooom
    ooom
    Offline
    Wednesday, September 15 2010, 06:10 PM - #Permalink
    0
    Hi germi,

    sounds good ;)

    I think I can get it! Unfortunately I have no development environment so I have to develop it "on the fly". Wish me good luck B)

    Greetings
    Michael
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 16 2010, 10:58 AM - #Permalink
    0
    GOOD LUCK! ;)
    The reply is currently minimized Show
Your Reply