Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2009-07-09 18:03:23

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: soo_page_numbers: page counting and navigation widgets

Well I’ve only been learning PHP properly for the last year, so I’m unable to help you. But I’ll be more than happy to test any updates that you have etc. Thanks for getting back to me so quick. Much appreciated.


~ Cameron

Offline

#12 2009-07-09 18:35:35

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,781
Website

Re: soo_page_numbers: page counting and navigation widgets

I might have it — the key is using $pretext['secondpass'] to prevent the raw tag output you were getting. I’ll do some testing; if you’d like to join in, edit as follows — for each tag you want to test:

1. in the global declaration, replace $is_article_list with $pretext

2. remove the if ( ! $is_article_list ) line

3. in the line beginning

return '<txp:soo_page_links '

insert

$pretext['secondpass'] ? '' :

after the word return (leaving the rest of the line intact)


Code is topiary

Offline

#13 2009-07-09 20:04:49

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: soo_page_numbers: page counting and navigation widgets

Working good so far :)


~ Cameron

Offline

#14 2009-07-09 20:41:45

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,781
Website

Re: soo_page_numbers: page counting and navigation widgets

I’ll make it official then: now at version 0.2.3. Thanks for the help in bug-stomping, Driz.


Code is topiary

Offline

#15 2009-07-16 15:38:50

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: soo_page_numbers: page counting and navigation widgets

Found a new bug. If you a view a page with no content so for example: domain.com/section/category/ and their are no articles in that category it will output Page 1, when it shouldn’t be saying Page 1 because their is only page anyways.


~ Cameron

Offline

#16 2009-07-16 16:02:26

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,781
Website

Re: soo_page_numbers: page counting and navigation widgets

Ta driz: in both tags, replace this line:

if ( ! $showalways and $numPages == 1 ) return;

with this:

if ( ! $showalways and $numPages <= 1 ) return;

Seems to work; please test it and I’ll release a new version.


Code is topiary

Offline

#17 2009-07-16 16:52:43

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: soo_page_numbers: page counting and navigation widgets

works great


~ Cameron

Offline

#18 2009-07-16 17:10:16

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,781
Website

Re: soo_page_numbers: page counting and navigation widgets

Great — v 0.2.4 released.


Code is topiary

Offline

#19 2009-09-10 08:03:22

kostas45
Member
From: Greece
Registered: 2007-11-08
Posts: 61

Re: soo_page_numbers: page counting and navigation widgets

Jeff, can we have some usage examples of your plugin please?

Thanks,
Kostas

Offline

#20 2009-09-10 09:00:48

txpnisti
Member
Registered: 2009-02-25
Posts: 23

Re: soo_page_numbers: page counting and navigation widgets

Great plugin, just one question: should this paginate search results also? If I add this to my custom search results landing page, numbers are linking very randomly if I can see. They lead even to a different section. Perhaps something with my setup, but I just wanted to be sure.

Offline

Board footer

Powered by FluxBB