Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
Offline
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
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!
Offline
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
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)
Offline
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
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)
Offline
Re: <txp:older><txp:newer> stopped working
Where is pgonly in that form? You said you were using it, when you are not using it, what I said doesn’t apply.
The code you posted just now always works for me – without problems, unless a plugin interferes.
Offline
Re: <txp:older><txp:newer> stopped working
Oops – sorry that line IS in there – I just pasted an older copy of the code..
Edited to show now… ;-)
Update: Using the <code><txp:article limit=“6” pgonly=“1” /></code> tag fixes my pagination problems!
This is very good, but can you tell me why it is needed here, where other installs don’t need it?
Many thanks for your help.
Cheers
Last edited by NeilA (2006-01-05 10:19:32)
Offline
#27 2006-08-31 12:42:38
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: <txp:older><txp:newer> stopped working
- Samuel John wrote:
- 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.
Can someoene explain further because I am seeing the same quirk and use the plug in for a gallery of one of my clients ….
progre55
Last edited by progre55 (2006-08-31 12:43:20)
Offline