Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2009-10-11 03:43:07

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,244
Website

Re: soo_page_numbers: page counting and navigation widgets

jsoo,

did you try that ?
I get a truck load of errors:

Tag error:  <txp:soo_page_count format="{first}" wraptag="li" /> ->  Textpattern Notice: Unknown tag attribute: wraptag  on line 699

That is the first one, I snipped the rest.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#62 2009-10-11 14:13:18

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

Re: soo_page_numbers: page counting and navigation widgets

Sorry Phillipe, I meant to ask, would you like me to add {first} and {last} and wraptag; currently the plugin does not have them. If you think this would be useful I’d be happy to do so. Won’t be able to get to it till later today or tomorrow.


Code is topiary

Offline

#63 2009-10-16 12:08:02

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,244
Website

Re: soo_page_numbers: page counting and navigation widgets

jsoo wrote:

Sorry Phillipe, I meant to ask, would you like me to add {first} and {last} and wraptag; currently the plugin does not have them. If you think this would be useful I’d be happy to do so. Won’t be able to get to it till later today or tomorrow.

I think both additions would be useful to your plugin: wraptag sure, it is the standard way to set up the html part in Textpattern, {first} and {last}, every time you generate an interactive list that counts something (pages), it adds functionality to browse that list.

(haven’t had much time to play around with these things this week; spend too much time staring at compiler logs).


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#64 2009-10-21 21:14:17

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

Re: soo_page_numbers: page counting and navigation widgets

Version 0.2.5 available. Adds new attributes (plus a couple of new shortcut tags) as requested above.


Code is topiary

Offline

#65 2009-11-23 14:25:48

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

Re: soo_page_numbers: page counting and navigation widgets

Hey hey 2 questions please.

1.
Is it possible to have 2 paging navigations on the same page that each is for a specific category?

2.
I got a problem, I use the ‘Postmaster’ plugin with a singup form to a newsletter.
and when I click on submit to send the email address, it’s reload the page and show me a successful/error message based of what I entered in the form.
but when it’s reload the page it also automatically moving me to the last page in the paging navigation
so if I was at page number “1”, after I submit the newsletter form, I’m being transferred to the last page (9).

btw: I use your plugin with the ‘rss_suparchive’ plugin to be able to have paging for lists.
Also If there is a better way of doing it I will appreciate to know please.

Last edited by THE BLUE DRAGON (2009-11-23 22:53:49)

Offline

#66 2009-11-23 15:43:53

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

Re: soo_page_numbers: page counting and navigation widgets

THE BLUE DRAGON wrote:

Is it possible to have 2 paging navigations on the same page that each is for a specific category?

soo_page_links simply looks at the current page context to make its links. E.g. it will only show paging links for the currently showing category. I suppose you could fool it by using article tags with pgonly to create isolated contexts for each category you want to show. Haven’t tried this myself.

I got a problem, I use the ‘Postmaster’ plugin with a singup form to a newsletter.
and when I click on submit to send the email address, it’s reload the page and show me a successful/error message based of what I entered in the form.
but when it’s reload the page it also automatically moving me to the last page in the paging navigation
so if I was at page number “1”, after I submit the newsletter form, I’m being transferred to the last page (9).

I’ll have to look into this.

btw: I use your plugin with the ‘rss_suparchive’ plugin to be able to have paging for lists.
Also If there is a better way of doing it I will appreciate to know please.

Not really familiar with rss_suparchive; what kind of lists?


Code is topiary

Offline

#67 2009-11-23 16:08:29

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

Re: soo_page_numbers: page counting and navigation widgets

jsoo wrote:
Not really familiar with rss_suparchive; what kind of lists?

Articles custom lists that have a paging ability (and some other stuff).

Offline

#68 2009-11-23 16:27:41

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

Re: soo_page_numbers: page counting and navigation widgets

The plugin relies on the $thispage$ global array, particularly the pg and numPages items in that array. So it should work with any article custom plugin that sets those variables.


Code is topiary

Offline

#69 2009-11-23 16:50:16

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

Re: soo_page_numbers: page counting and navigation widgets

Yea it’s works fine with it, I just mention so if there is a better way to have an articles-list paging :)

Offline

#70 2009-11-23 18:10:35

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

Re: soo_page_numbers: page counting and navigation widgets

Back to your conflict with Postmaster:

Please try editing soo_page_numbers as follows (i.e., in the Admin->Plugins list, click the “Edit” link)

Find this line:

if ( isset($items) )

Immediately above that line, add a new line containing this:

$uri->set_query_param('pg', ( $pg > 1 ? $pg : null ));

Let me know if that fixes the problem, and if it does I’ll roll out a new point release.


Code is topiary

Offline

#71 2009-11-23 20:43:21

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

Re: soo_page_numbers: page counting and navigation widgets

Yes it does works good!
I tried to send the form and it stays in the same page that I was, if it’s the main section or even if I’m paging.
Thanks =)

Offline

#72 2009-11-23 22:19:33

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

Re: soo_page_numbers: page counting and navigation widgets

Great, thanks. v0.2.6, now available, incorporates this change.


Code is topiary

Offline

Board footer

Powered by FluxBB