Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-01-03 21:24:21

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: <txp:older><txp:newer> stopped working

Works for me. I am using your article-tag and blog_list form:

http://txd.sencer.de/txp/

So, on that fresh install – were you able to reproduce the error by doing steps x, y, z? That’s what I am looking for.

Offline

#14 2006-01-03 22:02:09

NeilA
Member
From: Blue Mountains, Australia
Registered: 2004-08-15
Posts: 316
Website

Re: <txp:older><txp:newer> stopped working

Found the culprit!

rss_thumbpop plugin.

<blush> I thought I had turned off all the non-admin plugins that I was using, so my apologies for the false leads.

On another site, I’m using that plugin, and I’m seeing the same symptoms that SamuelJohn reported – some pagination working, some not – but I have no idea of how to debug that.

Thanks for your time Sencer, and my apologies for the mis-leading error.

Regards


Neil – Blue Mountains, Australia

http://westserve.org
http://ministrygrounds.net.au

Offline

#15 2006-01-03 23:19:44

SamuelJohn
New Member
Registered: 2005-06-01
Posts: 8

Re: <txp:older><txp:newer> stopped working

Oh yes I got that plugin on my site, too!

Perhaps, we can find the problem now…

Offline

#16 2006-01-04 09:23:35

alexbrie
New Member
Registered: 2004-09-29
Posts: 4

Re: <txp:older><txp:newer> stopped working

I have the same problem, but I don’t have the plugin. On the other hand, the problem may be related to the fact that
if I put the Older/Newer snippets BEFORE the article list, they don’t show up

The following code won’t work on my site: (however, if I put the article list before the older/newer, it works.

< txp:if_article_list >
< p >
< txp:older >Previous page< /txp:older >
< txp:newer >Next page< /txp:newer >
< /p >
< /txp:if_article_list >

< txp:article listform=“default” form=“default” limit=“10” / >

Last edited by alexbrie (2006-01-04 09:24:37)

Offline

#17 2006-01-04 09:36:56

NeilA
Member
From: Blue Mountains, Australia
Registered: 2004-08-15
Posts: 316
Website

Re: <txp:older><txp:newer> stopped working

Hi Alexbrie,

Could you edit your post using (code) and (/code)tags so we can read your example?

Thanks


Neil – Blue Mountains, Australia

http://westserve.org
http://ministrygrounds.net.au

Offline

#18 2006-01-04 09:58:21

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: <txp:older><txp:newer> stopped working

Try placing this tag before the older/newer tags: <txp:article pgonly="1" /> – it will not output anything, but it will initialize the necessary variables for older/newer to work correctly.

Offline

#19 2006-01-04 10:13:14

NeilA
Member
From: Blue Mountains, Australia
Registered: 2004-08-15
Posts: 316
Website

Re: <txp:older><txp:newer> stopped working

Hi Sencer,

Thanks for that.
Interesting results:

With that tag added, partial success.
The first page displays the ‘previous posts’ link, as expected (yay!).
The second page of posts (?pg=2) displays ‘newer posts’, but not ‘previous posts’

If I enter the URL with ?pg=3 on the end, I get the third page of posts, PLUS the ‘previous and newer’ links at the bottom.
If I use the ‘previous’ link again, I get the fourth and last page of posts, BUT I still get the ‘previous’and ‘newer’ links, even though there are no more ‘previous’ posts to show.

I hope that all makes sense. The full URL is: http://ministrygrounds.net/blob/?pg=2 (or 3, or 4)

If I disable the rss_thumbpops plugin, non of the above behaviour changes.

So… partial success!

Thanks!


Neil – Blue Mountains, Australia

http://westserve.org
http://ministrygrounds.net.au

Offline

#20 2006-01-04 10:24:34

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: <txp:older><txp:newer> stopped working

NielA, this wasn’t intended for your problem with the plugin. It the plugin breaks functionality, it is the plugins responsibility to fix it. I was answering alexbrie’s question which will happen on a clean install.

Having said that, one has to make sure to use the same limit= on both article-tags…

Offline

#21 2006-01-04 18:31:54

SamuelJohn
New Member
Registered: 2005-06-01
Posts: 8

Re: <txp:older><txp:newer> stopped working

After uncommenting the pagination code in the rss_tumbpop plugin, it works again. So this is NOT a bug of TXP 4.0.3!

I dont’t use pagination in the rss_thumbpop, so uncommenting the pagination is a good workaround for me.

Offline

#22 2006-01-04 21:06:47

NeilA
Member
From: Blue Mountains, Australia
Registered: 2004-08-15
Posts: 316
Website

Re: <txp:older><txp:newer> stopped working

> Sencer wrote:
> NielA, this wasn’t intended for your problem with the plugin. It the plugin breaks functionality, it is the plugins responsibility to fix it. I > was answering alexbrie’s question which will happen on a clean install.
> Having said that, one has to make sure to use the same limit= on both article-tags…

My apologies… but the interesting thing is that having used that line <code><txp:article pgonly=“1” /></code> just once brings back the partial functionality of the older and newer tags that I describe above.
Even with that tag remmed out and the plugin enabled, I still have the partial function of older and newer… So perhaps this isnt a plugin problem after all.

Will test more extensively on my totally fresh install…

Cheers

Last edited by NeilA (2006-01-04 21:07:00)


Neil – Blue Mountains, Australia

http://westserve.org
http://ministrygrounds.net.au

Offline

#23 2006-01-04 21:18:31

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: <txp:older><txp:newer> stopped working

NeilA, no need to apologize, I only meant that you shouldn’t rely on an accidental overlap/side-effect to fix a plugin-issue.

Have you seen and tried my advice about using the same limit= attributes on both tags? Otherwise pagination will calculate with a different number of articles per page, than what is actually displayed, which will definitely lead to odd behaviour.

Offline

#24 2006-01-04 21:36:19

NeilA
Member
From: Blue Mountains, Australia
Registered: 2004-08-15
Posts: 316
Website

Re: <txp:older><txp:newer> stopped working

Thanks Sencer – I certainly don’t want to confuse the situation further.
Can I ask you to clarify the suggestion about using the same limit= attributes on both tags?

I only have one article tag in that section of the page:

<code>
<div id=“content”>
<txp:article listform=“list_blog” limit=“6” />
<txp:if_individual_article>
<br /><hr />
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev> |
<txp:link_to_next><txp:next_title /></txp:link_to_next><br /><br />
Return to <a href=”<txp:site_url />Blog”>Blog</a> list of articles
<br /><br />
</txp:if_individual_article>

<txp:if_article_list>
<hr />
<p>
<txp:article pgonly=“1” />
<txp:older>Older Posts</txp:older>|
<txp:newer>Newer Posts</txp:newer>
</p>
</txp:if_article_list>
</div>
</code>
Am I missing something really obvious?

Cheers.

Last edited by NeilA (2006-01-04 22:08:25)


Neil – Blue Mountains, Australia

http://westserve.org
http://ministrygrounds.net.au

Offline

Board footer

Powered by FluxBB