Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2009-09-22 11:53:25

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:

2. I found something: (a bug I think)
when using pageby="10" and pagging to page #12+
the <txp:article /> is disappear and not geting loaded.

I cannot reproduce this. Are you sure that there are more than 110 articles set to show on that page?


Code is topiary

Offline

#38 2009-09-22 12:07:25

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

Re: soo_page_numbers: page counting and navigation widgets

Ohhh sorry you are right
my mistake
the limit in the article_custom was on 5 and the pageby was on 10, that was my problem
sorry and thanks ;)

Last edited by THE BLUE DRAGON (2009-09-22 12:31:45)

Offline

#39 2009-09-22 12:15:07

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:

I know you made it to be like this for working with plugins’ params,
but is there a way to disable it please?
(so there will not be: zem_contact_send_article=yes in the url [or any other plugin])

I’ll give this some thought. I’m using $_GET because it is convenient, but I could parse the query string instead, and that might be a better general approach.


Code is topiary

Offline

#40 2009-09-22 12:16:38

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:

the limit in the article_custom was on 5 and the pageby was on 10, that was my problem

Now I’m confused ;) article_custom doesn’t page, and it’s OK to have a smaller limit than pageby. But if you’ve got it working, fine!


Code is topiary

Offline

#41 2009-09-22 12:30:50

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

Re: soo_page_numbers: page counting and navigation widgets

jsoo wrote:

Now I’m confused ;) article_custom doesn’t page

and you are right again O_o
I’m using rss_suparchive for creating an article list that support paging
and when I’m having a smaller limit than pageby it doesn’t work when you cross the limit.

Offline

#42 2009-09-22 14:54:30

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:

<txp:php>
  $_GET['zem_contact_send_article']='yes';
</txp:php>

Would it work for you to use $_POST instead?


Code is topiary

Offline

#43 2009-09-22 15:51:13

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

Re: soo_page_numbers: page counting and navigation widgets

jsoo wrote:

Would it work for you to use $_POST instead?

great!
thanks =)

Offline

#44 2009-09-22 15:51:56

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

Re: soo_page_numbers: page counting and navigation widgets

Anyway, here’s a mod that should fix your problem:

In the soo_uri class, function __construct(), replace the last line, namely:

	$this->query_params = $_GET;

with:

	parse_str($this->query_string, $this->query_params);

Let me know if that works and I’ll probably roll it into the next release. As I said, it’s probably a better approach, not just for your situation, but in general.


Code is topiary

Offline

#45 2009-09-22 16:01:09

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

Re: soo_page_numbers: page counting and navigation widgets

jsoo wrote:

Let me know if that works and I’ll probably roll it into the next release.

Yea changed it back to $_GET, replaced the line, and it’s works good =)

Offline

#46 2009-10-03 14:54:41

leonardochen
Member
Registered: 2008-11-14
Posts: 11

Re: soo_page_numbers: page counting and navigation widgets

Hello
The plugin works great. In my application I filter articles with “?month=2009-09”, and that is preserved when links to the pages are built.

However, I’m having a small problem. The links are being generated with the wrong path.
My textpattern root installation (where index.php is located) is in a subfolder
http://www.mysite.com/diario

For some reason, the links generated by the plugin refer to
http://www.mysite.com/diario/diario/?pg=5

Any clues?
Thanks

Offline

#47 2009-10-03 16:01:09

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

Re: soo_page_numbers: page counting and navigation widgets

Thanks for pointing this out — I had never considered how subdirectory installations would work with this. Please try it with the new version of the soo_txp_obj library plugin and let me know how it goes.


Code is topiary

Offline

#48 2009-10-03 20:19:31

leonardochen
Member
Registered: 2008-11-14
Posts: 11

Re: soo_page_numbers: page counting and navigation widgets

Hi Jeff
No, not yet. The links still have the additional folder.

Offline

Board footer

Powered by FluxBB