Textpattern CMS support forum

You are not logged in. Register | Login | Help

#141 2017-03-10 17:07:45

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

Re: soo_page_numbers: page counting and navigation widgets

Just came up with a fix, if you don’t mind testing it. Will upload it to github shortly.


Code is topiary

Offline

#142 2017-03-10 17:28:37

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

Re: soo_page_numbers: page counting and navigation widgets

Version 0.4.1 now available on GitHub (look for the most recent file in /releases) and the regular download page.

This version should restore correct handling of custom URI schemes, while it remains a free-standing plugin (no external library required).


Code is topiary

Offline

#143 2017-03-10 17:51:51

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 216
Website

Re: soo_page_numbers: page counting and navigation widgets

jsoo wrote #304559:

Version 0.4.1 now available on GitHub (look for the most recent file in /releases) and the regular download page.

This version should restore correct handling of custom URI schemes, while it remains a free-standing plugin (no external library required).

Thank you, Jeff. It is already midnight here in Japan, so I will try it out tomorrow.


JapaneseStreets.com – Japanese street fashion (mostly txp)
Old Photos of Japan – Japan between 1860 and 1940 (100% txp)
MeijiShowa – Stock photos of Japan between 1860 and 1940 (100% txp)

Offline

#144 2017-03-10 18:38:22

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 3,192
Website

Re: soo_page_numbers: page counting and navigation widgets

Hi Jeff,

If you can add the GitHub topic tags textpattern and textpattern-plugin to your repos that would be wonderful. It helps discoverability, see here

Offline

#145 2017-03-10 18:40:33

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

Re: soo_page_numbers: page counting and navigation widgets

Hi Phil — I had just noticed that yesterday, and added the tags to my new plugin, soo_page_break. I’ll do likewise for the rest.

Last edited by jsoo (2017-03-10 18:40:45)


Code is topiary

Offline

#146 2017-03-11 13:32:54

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 216
Website

Re: soo_page_numbers: page counting and navigation widgets

Jeff, the latest version appears to work perfectly. I have installed it on three sites and have found no issues yet. Not even on a site using the MLP plugin.

Thank you very much!


JapaneseStreets.com – Japanese street fashion (mostly txp)
Old Photos of Japan – Japan between 1860 and 1940 (100% txp)
MeijiShowa – Stock photos of Japan between 1860 and 1940 (100% txp)

Offline

#147 2017-03-11 14:22:23

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

Re: soo_page_numbers: page counting and navigation widgets

Thanks Kjeld, very glad this worked for you. Unlike the old version there is no question of conflict with MLP, because the plugin does not touch $_SERVER['REQUEST_URI'].


Code is topiary

Offline

#148 2018-01-30 21:43:43

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 985
Website

Re: soo_page_numbers: page counting and navigation widgets

Strange behavior to report when it comes to search listings. I noticed this a while ago, but I only had a chance to play around with it today.

I have the following code:

<txp:if_search>


  <txp:article
    form="search_results"
    searchsticky="1"/>

  <nav>
    <txp:soo_page_links
      active_class="active"
      break="li"
      class="myclass"
      wraptag="ul"/>
  </nav>

</txp:if_search>

This works perfectly well for the most cases when I notice.

But when there are a LOT of search results, things start getting weird.

For example, I searched for “the” (without quotes) and got 54 pages of results according to the pagination links.

But when I click through to page 2, the pagination links disappear. I see search results on every page of results, but the pagination links only appear on the first page.

In another case, I searched for a term that gave me 24 pages of results according to the pagination links.

The pagination links appear on pages 1-4 as I expect. But when I click through to page 5, the pagination links appear for pages 1–4, and no others—as if the search yielded only 4 pages of results. But none of the links has the active class.

I was using soo_page_numbers v0.3.1 with soo_txp_obj v1.1.1, and I upgraded to v0.4.1 and I see the same behavior.

Beyond that, I’m not sure where to even start troubleshooting. Can you suggest any steps I could take to diagnose the problem?

Thank you!

Offline

Board footer

Powered by FluxBB