Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#25 2010-02-21 14:32:21
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: pagination problem
Hello Els.
My thoughts were this to solve it.
To get all pagenr and store it.
Then to look if the total pages > 11
If so : only get the numbers which are needed from the stored pagenr.
And make the url’s.
If not so : take all the pagenr and make the urls
Roelof
Offline
#26 2010-02-21 20:28:42
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: pagination problem
Hello,
Nobody who can tell me if this idea can work ?
Roelof
Offline
#27 2010-02-21 21:06:57
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: pagination problem
roelof wrote:
Nobody who can tell me if this idea can work ?
Not as long as I don’t get the idea, especially this part:
only get the numbers which are needed from the stored pagenr.
It’s not difficult to get the page numbers (you’re already doing that in the pagination), but how are you going to determine which ones you need?
To be honest, if it were my site I’d have given up by now and used a css solution.
Offline
#28 2010-02-21 21:12:52
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: pagination problem
Hello Els.
What i meant was this :
Lets say all the pagenumbers are in a sort of table named pagenumbers.
With the script we have debugged we can determine with which numbers we have to start variable : firstpage and where to stop : variable lastpage.
So i only want to display the numbers of that table which are between that two numbers. The numbers included.
I think i can do that which the plugin smd-each together with smd-if.
Roelof
Offline
#29 2010-02-21 21:53:26
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: pagination problem
roelof wrote:
I think i can do that which the plugin smd-each together with smd-if.
Well, the only way to find out is to give it a go ;) I admire your perseverance, but I think it’s an awful lot of trouble for a minor part of a site…
Offline