Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#121 2012-01-09 10:24:29

blur
Member
Registered: 2008-09-08
Posts: 18

Re: soo_page_numbers: page counting and navigation widgets

Hi, i’m using a combination of <txp:soo_page_links /> and <txp:soo_next_page /> to paginate my search results. I’m trying to get something like: <prev 1 2 3 4 next>. Everything its working, but i notice that <txp:soo_next_page /> doesn’t preserve the extra parameters of the query.

My <txp:soo_page_links /> tag generates a link like:

http://localhost/search/?q=foo&myvar=bar&pg=2

but <txp:soo_next_page /> generates:

http://localhost/search/?q=foo&pg=2

The question is: How can i preserve the extra parameters on the URL query by using the soo_next_page tag?

Offline

#122 2012-01-23 09:03:58

SuMu
Member
From: Germany - Wuppertal
Registered: 2008-03-06
Posts: 242
Website

Re: soo_page_numbers: page counting and navigation widgets

Hi

My Problem
My code

What is wrong?


viele Grüße
SuMu

Psychomuell + blogZicke

Offline

#123 2012-01-24 16:10:06

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

Re: soo_page_numbers: page counting and navigation widgets

Hi Susanne — sorry to take so long to reply. I’m unable to duplicate this error. What other plugins does the site use?


Code is topiary

Offline

#124 2012-01-24 16:20:34

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

Re: soo_page_numbers: page counting and navigation widgets

blur wrote:

Hi, i’m using a combination of <txp:soo_page_links /> and <txp:soo_next_page /> to paginate my search results. I’m trying to get something like: <prev 1 2 3 4 next>. Everything its working, but i notice that <txp:soo_next_page /> doesn’t preserve the extra parameters of the query.

This is a limitation in some native Txp functions used by the plugin. (You’d see the same behavior using the native newer and older tags.) I don’t have a solution offhand but I’ll see if I can think of one.


Code is topiary

Offline

#125 2012-01-25 02:40:22

SuMu
Member
From: Germany - Wuppertal
Registered: 2008-03-06
Posts: 242
Website

Re: soo_page_numbers: page counting and navigation widgets

jsoo schrieb:

Hi Susanne — sorry to take so long to reply. I’m unable to duplicate this error. What other plugins does the site use?

A lot^^

  • adi_contact
  • arc_twitter
  • csb_feed_image
  • egg_anonymizer
  • gho_comment_tools
  • htn_comment_count
  • jnm_comments_reply
  • lam_image_uploader
  • rah_metas
  • rah_sitemap
  • rah_textile_bar
  • rss_admin_show_adv_opts
  • rss_auto_excerpt
  • rss_suparchive
  • rvm_privileged
  • sed_comment_pack
  • soo_page_numbers
  • soo_txp_obj
  • wdm_update_url
  • wet_article_thumb
  • wet_commentmagic
  • wet_haystack
  • wet_if_page
  • wet_peex
  • zem_contact_reborn
  • zem_contact_lang-de

viele Grüße
SuMu

Psychomuell + blogZicke

Offline

#126 2012-01-25 13:07:07

SuMu
Member
From: Germany - Wuppertal
Registered: 2008-03-06
Posts: 242
Website

Re: soo_page_numbers: page counting and navigation widgets

Hi
Thanks for your Email, it works now!


viele Grüße
SuMu

Psychomuell + blogZicke

Offline

#127 2012-01-25 14:49:57

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 for you help debugging this. The fix has been incorporated into v1.1.1 of soo_txp_obj, now available for download.


Code is topiary

Offline

#128 2012-01-27 18:44:13

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

Re: soo_page_numbers: page counting and navigation widgets

blur wrote:

The question is: How can i preserve the extra parameters on the URL query by using the soo_next_page tag?

I’ve corrected this in version 0.3.1. Haven’t tested it extensively, so please let me know if it works correctly for you. Thanks for the suggestion!


Code is topiary

Offline

#129 2012-01-27 23:19:31

blur
Member
Registered: 2008-09-08
Posts: 18

Re: soo_page_numbers: page counting and navigation widgets

jsoo wrote:

I’ve corrected this in version 0.3.1. Haven’t tested it extensively, so please let me know if it works correctly for you. Thanks for the suggestion!

It works :) Thanks!

Offline

#130 2016-02-19 05:49:29

sochicomputerRU
Member
From: Россия
Registered: 2013-01-18
Posts: 61
Website

Re: soo_page_numbers: page counting and navigation widgets

How to make this plugin work for article_custom?

Check this out, I have a section blog, to which I write articles with specific categories, for example category phone repair, or category tablet repair.

Then I have a section services and child sections phone repair and tablet repair. So since my blog is about my latest interesting repairs, I want to show in section phone repair, latest articles from section blog and category phone repair. Obviously I need paginator for this.

Offline

#131 2016-02-26 14:45:14

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

Re: soo_page_numbers: page counting and navigation widgets

You should be able to do it with etc_pagination

Offline

#132 2016-04-06 15:35:28

Karsten
Member
From: Leiden, Netherlands
Registered: 2011-04-24
Posts: 47
Website

Re: soo_page_numbers: page counting and navigation widgets

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).

For the <txp:soo_page_links> I managed to do this by editing the plugin itself and added a [class=“whatever” bit right in front of the “title” tag:

$items[] = href($n, $uri->full, ‘ class=“whatever” title=”’ . gTxt(‘page’) . sp . $n . ‘”’);

this worked, and now I can style those links. However. I also want the <txp:soo_prev_page /> and <txp:soo_next_page /> <a> links to have a class. This I cannot seem to manage. I tried all afternoon but without success.

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.

Suggestions are much appreciated!

Offline

Board footer

Powered by FluxBB