Welcome Guest, Not a member yet? Register   Sign In
seems like pagination bug ?
#1

[eluser]EugeneS[/eluser]
hello,

have next structure:

inside the constructor:

Code:
//START initialization of the pagination class
        $this->load->library('pagination');
        $this->p_config['base_url'] = $this->base_url;
        $this->p_config['uri_segment'] = 3;
        $this->p_config['per_page'] = 1;
        $this->p_config['num_links'] = 5;
        $this->p_config['first_link'] = 'first';
        $this->p_config['last_link'] = 'last';
        $this->p_config['next_link'] = '»';
        $this->p_config['prev_link'] = '«';
    //END initialization of the pagination class

inside some method:
Code:
function Listing($show_new = 0)
    {
        $count = $this->mProduct->CountNewProduct();

    // SATART pagination
        $this->p_config['total_rows'] = $count;
        $this->pagination->initialize($this->p_config);

        $this->page_data['pagination'] = $this->pagination->create_links();
    // END pagination
    }

so here is a question:

as you can see from the attached images i see only "next" link and do not see any "previous" "first" "last" .... any suggestions ?
#2

[eluser]marcoss[/eluser]
Search is there to be used, http://ellislab.com/forums/viewthread/55898/#278950

And it's not a bug, it's a feature.
#3

[eluser]EugeneS[/eluser]
[quote author="marcoss" date="1185478985"]Search is there to be used, http://ellislab.com/forums/viewthread/55898/#278950

And it's not a bug, it's a feature.[/quote]


could you then explain where is my "<<" ?
why do i see ">>" on the second page like

1 2 3 >>

but not
<< 1 2 3 >>

why do i see

1 2 3 >>

and do not see
<< 1 2 3
#4

[eluser]marcoss[/eluser]
[quote author="EugeneS" date="1185479420"]
but not
<< 1 2 3 >>
[/quote]

If you are on page 2, and you only have 3 pages, the only one option available to move forward is 3, and to move backwards, it is 1. Next and Prev are unnecessary.

There are many good books on UI design, but usually it's just about common sense.
#5

[eluser]EugeneS[/eluser]
[quote author="marcoss" date="1185480072"][quote author="EugeneS" date="1185479420"]
but not
<< 1 2 3 >>
[/quote]

If you are on page 2, and you only have 3 pages, the only one option available to move forward is 3, and to move backwards, it is 1. Next and Prev are unnecessary.

There are many good books on UI design, but usually it's just about common sense.[/quote]

i understand this pretty well ... BUT as you see from the screenshots pagination shows me only ONE OPTION IS >>


or show both or do not show << >> at all ... this wasnt written in those books ?
#6

[eluser]marcoss[/eluser]
It's a design pattern, every ones knows that 1 is the first page, the next page indicator is shown because the user will move forward until the last page (which is not always known), so when you are standing on the penultimate page, it becomes useless, so it's removed.

There is no symmetry in here.
#7

[eluser]EugeneS[/eluser]
it seems to me that you are inattentive ...

could you explain me WHY when i'm on the first page i see >>
but when i'm on the last page i do not see <<

it is definitely not a feature but a BUG ....

or should be used the same way ... show >> then << or shouldnt be used any of them at all....
because it is meaningless when i can see only NEXT navigation but cant see PREVIOUS at all.
#8

[eluser]marcoss[/eluser]
I've already explained that. If you really think this is a bug, go ahead and "fix" it.




Theme © iAndrew 2016 - Forum software by © MyBB