Textpattern CMS support forum
Someone asked for a plugin to display the page number of an article list page. This plugin will do that. At least I am fairly certain it does.
Last edited by ramanan (2004-05-17 02:42:51)
sorry but I get this:
Notice: Undefined variable: offset in C:\WINDOWS\TEMP\plu42E0.TMP on line 14
on top of my page. I’m using txp on my localhost.
Despite this, the pagenumber displays allright, but I need to extract the total number of pages also – to compare – otherwise one does not where one is in in the process of navigating a section…
You know, a deployed output “pages 1 2 3 4” (linked numbers)
or “<< page 2 (…of 5) >>”
That way you size the heystack, when you, as a user of a big site, are skimming it for needles…
I’m posting this in the how to forum as well, in case you miss it here..
I appreciate your effort.
Ramanan, you’d better turn on
error_reporting(E_ALL) for developing. It will make you write 100% correct code, while leaving those of us who run with this setting by default with error-free pages… ;)
Who’s gonna textdrive you home tonight?
Oh thanks. Good to know. Everything I code in PHP is me winging-it. Thanks for that tip. The offset error shouldn’t show up anymore. I’ll post all my changes in a bit.
Last edited by ramanan (2004-05-18 07:12:05)
I’ve updated the plugin once more. You can now supply the text to use for the left and right navigation (it defaults to << and >>). Also, everything is wrapped in span’s you can style with textpattern. I’m using it at my site for the time being if you want to see it in action. The next time I update this i’ll add the other form of navigation suggested (Page 1 2 3 4 5…)
Good work, ramanam.
I’m looking forward to the new variation(1, 2, 3, 4 …)
What would be VERY nice, is a navigation bar, that toggeled linked pages on article-lists, and linked articles when individual articles are on.
(The built in if-tags don’t seem to work when put in top of the page – only after the article-tag.)