Welcome Guest, Not a member yet? Register   Sign In
Always show pagination links
#1

[eluser]JanDoToDo[/eluser]
Hey guys.

I'm wondering if someone could tell me/has an extension for the pagination class to force links to be drawn whether there is more than 1 page or not. I basically have links which I always want to show as it also displays total results and stuff in the link tags but as there is only 1 page, links arent drawn.

If someone could help it would be awesome! Smile ty!
#2

[eluser]Craig300[/eluser]
If you wanted to display the pages regardless if there is only one page, try commenting out the following code in the Pagination class

Code:
if ($num_pages == 1)
{
        return '';
}

That should work, although I have modified my pagination class extensively so hopefully it should work without anymore changes.

Cheers,

Craig




Theme © iAndrew 2016 - Forum software by © MyBB