Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
Re: soo_page_numbers: page counting and navigation widgets
Offline
#123 2012-01-24 16:10:06
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
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
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
Offline
#126 2012-01-25 13:07:07
Re: soo_page_numbers: page counting and navigation widgets
Hi
Thanks for your Email, it works now!
Offline
#127 2012-01-25 14:49:57
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
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
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
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
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