Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#136 2017-03-10 13:37:18

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

Re: soo_page_numbers: page counting and navigation widgets

Hi Kjeld. Sites look great, BTW. Having not followed Txp closely for a long-ish stretch, this use of custom field values in the URL is new to me. How are the URLs generated?


Code is topiary

Offline

#137 2017-03-10 15:01:31

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

Re: soo_page_numbers: page counting and navigation widgets

jsoo wrote #304542:

Hi Kjeld. Sites look great, BTW. Having not followed Txp closely for a long-ish stretch, this use of custom field values in the URL is new to me. How are the URLs generated?

Thank you both for your nice words, and your quick response, Jeff!

I basically use chh_keywords for using custom field values like categories.

What I do on Old Photos of Japan with the links in the right column, I do with dropdown menus on http://www.meijishowa.com. I then use adi_gps to extract GET & POST variables. I partly explained this method at Create an advanced search on your site

On http://www.meijishowa.com I am still using your old version of soo_page_numbers and it works perfectly, including the extra parts of the URL without fail.


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

#138 2017-03-10 15:30:58

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

Re: soo_page_numbers: page counting and navigation widgets

OK, makes sense. The older versions of the plugin do their own URL handling, and preserve the custom URL. While I think about whether or not I can work this into the new version, I have added /releases to the plugin’s github repo, and you can find the compiled 0.3.2 version there.


Code is topiary

Offline

#139 2017-03-10 15:33:09

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

Re: soo_page_numbers: page counting and navigation widgets

And, assuming you are running Txp 4.6 or higher, if you need to re-install the soo_txp_obj library the latest version is available here (this version is definitely not compatible with Txp versions earlier than 4.6).

Last edited by jsoo (2017-03-10 15:33:53)


Code is topiary

Offline

#140 2017-03-10 16:03:44

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

Re: soo_page_numbers: page counting and navigation widgets

jsoo wrote #304553:

OK, makes sense. The older versions of the plugin do their own URL handling, and preserve the custom URL. While I think about whether or not I can work this into the new version, I have added /releases to the plugin’s github repo, and you can find the compiled 0.3.2 version there.

Thanks, Jeff. So, if I understand you correctly, you are advising me to go back to a previous version while you think about what to do with the current version?


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

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

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
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,793
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: 465
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.


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

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

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,565
Website GitHub Mastodon

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,793
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: 465
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!


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

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

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
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: 1,000
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

#149 2020-03-09 15:01:29

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

Re: soo_page_numbers: page counting and navigation widgets

Notice

If you are using this plugin, before upgrading to Textpattern 4.8.0 be sure to upgrade the plugin to 0.4.2. Prior versions had an error that I hadn’t caught because it was harmless when running under earlier versions of Textpattern. But with Textpattern 4.8.0, an older version of the plugin will produce a fatal error on the public side, resulting in the dreaded white screen of death.

Apologies to anyone who was affected by this.


Code is topiary

Offline

#150 2020-03-09 15:49:48

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

Re: soo_page_numbers: page counting and navigation widgets

jsoo wrote #322108:

Notice

If you are using this plugin, before upgrading to Textpattern 4.8.0 be sure to upgrade the plugin to 0.4.2. Prior versions had an error that I hadn’t caught because it was harmless when running under earlier versions of Textpattern. But with Textpattern 4.8.0, an older version of the plugin will produce a fatal error on the public side, resulting in the dreaded white screen of death.

Apologies to anyone who was affected by this.

Thanks for the update and the heads up, Jeff!

Immediately installed the new version.


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

Board footer

Powered by FluxBB