Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#73 2010-02-11 17:09:06

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

Re: soo_page_numbers: page counting and navigation widgets

v0.2.7 is a minor update:

Fixed Textpattern notice about non-existent attribute when using soo_prev_page or soo_next_page (functionality not affected)


Code is topiary

Offline

#74 2010-02-19 15:42:39

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

Re: soo_page_numbers: page counting and navigation widgets

I am using soo_page_numbers in combination with chh_keywords_articles.

When a list of articles is created with chh_keywords_articles using keywords stored in Custom Fields, soo_page_numbers gives me links to more pages than there actually are for that particular keyword. So I end up with pagination linking to pages that contain no articles.

See examples here (go to the higher page numbers in the pagination to see the empty pages):

http://www.japanesestreets.com/type/winter+2010
http://www.japanesestreets.com/type/AUTUMN+2009

Do you have suggestions for a fix, or am I doing something wrong?

===

(Incidentally, soo_page_numbers solved all other problems that I was experiencing with ob1_pagination. Thanks!)


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

#75 2010-02-19 17:28:59

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

Re: soo_page_numbers: page counting and navigation widgets

That is a very slick site!

I’m not familiar with chh_keywords, but did notice this note about its issues with clean URLs. Have you tried experimenting with any of those suggestions?


Code is topiary

Offline

#76 2010-02-20 13:52:08

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

Re: soo_page_numbers: page counting and navigation widgets

Good morning Jeff!

I think I’m doing something wrong with your plugin. Is it possible to output pagination within an article list generated by txp:article_custom? ob1_pagination was giving me nothing, and I thought I broke it, but the soo_page_links tag isn’t outputting anything either.

Offline

#77 2010-02-20 14:17:10

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

Re: soo_page_numbers: page counting and navigation widgets

johnstephens wrote:

I think I’m doing something wrong with your plugin. Is it possible to output pagination within an article list generated by txp:article_custom?

No. soo_page_numbers relies on the standard Txp $thispage global (I would expect ob1_pagination does too), so only works with article.

IIRC, chh_article_custom (no longer supported) allows pagination.

Depending on what selectors you need for this article list, soo_article_filter might be another possibility.


Code is topiary

Offline

#78 2010-02-24 10:29:55

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: soo_page_numbers: page counting and navigation widgets

jeff, after plugin installation and activation this error

Parse error: syntax error, unexpected T_CLASS in /home/tartulinnu/domains/estbirding.ee/public_html/textpattern/lib/txplib_misc.php(484) : eval()'d code on line 7

appears at the top of a page.

i have lots of other plugins installed – could it be some conflict there?

Offline

#79 2010-02-24 13:02:49

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

Re: soo_page_numbers: page counting and navigation widgets

Did you install soo_txp_obj or copy the needed classes into soo_page_numbers? My guess is that you did the latter and made an error such as leaving out a curly brace.


Code is topiary

Offline

#80 2010-02-24 13:30:43

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: soo_page_numbers: page counting and navigation widgets

jsoo wrote:

Did you install soo_txp_obj or copy the needed classes into soo_page_numbers? My guess is that you did the latter and made an error such as leaving out a curly brace.

yes i did, right away.
no error during/after installation.

uninstalled/installed 3 more times both files – same error

Offline

#81 2010-02-24 14:11:53

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

Re: soo_page_numbers: page counting and navigation widgets

Are you running PHP 5?


Code is topiary

Offline

#82 2010-02-24 14:22:41

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: soo_page_numbers: page counting and navigation widgets

jsoo wrote:

Are you running PHP 5?

4.4.7 :)

Offline

#83 2010-02-24 14:52:34

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

Re: soo_page_numbers: page counting and navigation widgets

Therein lies the problem.


Code is topiary

Offline

#84 2010-05-18 12:57:12

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

Re: soo_page_numbers: page counting and navigation widgets

Good morning! I’m seeing some strange pagination behavior on a site I just launched, and I’m probably doing it wrong. Here’s the skinny:

I’m using soo_page_numbers to generate the pagination links for the articles section, author-filtered articles section, and search results. Here’s the tag I’m using:

...
<txp:if_last_article>
<txp:soo_page_links
	active_class="active"
	break="li"
	html_id="pagination-menu"
	wraptag="ul"/><txp:else/><hr/>
</txp:if_last_article>
</txp:article>

As you can see looking at the articles page, there are not currently enough articles to generate page links. But if I filter the articles by an author, the pagination links appear, even though clicking on them yields no additional content.

I can’t figure out what I’ve done wrong. Please let me know if you see an obvious error in my code.

Thank you!

Offline

Board footer

Powered by FluxBB