Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#133 2017-03-04 12:12:43

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

Re: soo_page_numbers: page counting and navigation widgets

Sorry to not respond to the last couple of posts; it’s been a while since I was last very active around here.

Updated to version 0.4.0, a refactoring to native Txp URL generation, hence the plugin is now freestanding (no external library required).


Code is topiary

Offline

#134 2017-03-04 12:51:51

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: soo_page_numbers: page counting and navigation widgets

Karsten wrote #298529:

Hi, is it possible to add a class to the <a> links generated by Soo_page_numbers. I need the links to have a class attribute in order to style them with my CSS (a simple manual <span> doesn’t work anymore since I started using Foundation to make a responsive site).

Anyone have idea? And why is it so difficult to add an class or id to these links, how else are you supposed to format them with CSS? I have the same problem with etc_pagination.

I don’t find it so difficult, but if etc_pagination can be simplified, without loosing its flexibility, all ideas are welcome.

Offline

#135 2017-03-10 03:22:36

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

Re: soo_page_numbers: page counting and navigation widgets

IMPORTANT — soo_page_numbers broken after update…

jsoo wrote #304367:

Updated to version 0.4.0, a refactoring to native Txp URL generation, hence the plugin is now freestanding (no external library required).

Jeff, thank you for the update. I immediately updated the plugin on all my sites. It works great, except for one small but important issue:

It creates accurate URLs for categories, but not for keywords created using the custom fields of Textpattern. You can see the issue live:

Category Paging
Works fine — ?c=women is included in the urls

Page 1: http://www.oldphotosjapan.com/photos/?c=women
Page 2: http://www.oldphotosjapan.com/photos/?pg=2&c=women

Custom Field Keyword Paging
Broken — location/Tokyo is not included in the urls…

Page 1: http://www.oldphotosjapan.com/photos/location/Tokyo
Page 2: http://www.oldphotosjapan.com/photos/?pg=2 !!!!

Broken — period/Meiji is not included in the urls…

Page 1: http://www.oldphotosjapan.com/period/Meiji
Page 2: http://www.oldphotosjapan.com/?pg=2 !!!!


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

#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: 446
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: 446
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: 446
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,564
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

Board footer

Powered by FluxBB