Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
txp:article_custom and pagination
I want to be able to list items from multiple sections and have pagination working too.
If i use txp:article i can’t list items from multiple sections and if i use txp:article_custom pagination will not work.
Any ideas?
Thanks in advance.
Lawrence
Offline
Re: txp:article_custom and pagination
You can try to combine attr offset
in txp:article_custom
and txp:variable
in some way… May be it’s possible. But without changing some global php variables
you will not be able to use tags txp:older/newer
and plugins, such as ob1_pagination
If you want pagination through list of articles from different sections,why not to unify them by keywords
, categories
or just some custom_field
value? This is possible for txp:article
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
Re: txp:article_custom and pagination
hi,
txp:older/newer works fine when i use txp:article but not when i use txp_article_custom.
ob1_pagination looks interesting. i’ll experiment with that.
thanks
Offline
Re: txp:article_custom and pagination
I’m actually amazed this can’t be done. Just installed ob1_pagination and it doesn’t work with txp:article_custom. Anyone know a workaround?
EDIT: All I am trying to do is show an article list with pagination on the front page of my site that includes only section="blog"
. I ended up finding an easy fix by making the blog
section the only one that’s "On front page"
on the sections setup screen. Now I can just use the <txp:article />
tag on the default page and it only looks at articles in the blog
section. This is basic Txp stuff I know, but sometimes it’s good to get back to the basics!
Last edited by aswihart (2009-04-12 22:46:12)
Offline
#5 2009-04-12 22:46:27
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: txp:article_custom and pagination
chh_article, part of the chh_article_custom plugin. Though the plugin still works, it is not supported anymore!
EDIT: just noticed your edit, that is a better solution of course :)
Last edited by els (2009-04-12 22:47:57)
Offline
Re: txp:article_custom and pagination
So, chh_article
is supports pagination? So does rss_suparchive
, a pleasant suprise. Can chh_article
limit by section though? Doesn’t appear so.
Offline
#7 2009-04-13 20:41:06
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: txp:article_custom and pagination
aswihart wrote:
Can
chh_article
limit by section though?
I haven’t tried it, but
chh_article accepts the same attributes as chh_article_custom
Offline
Re: txp:article_custom and pagination
I don’t know I haven’t tried it myself, but here it sounds like someone couldn’t get chh_article plugin to work with ob1_pagination.
Offline
#9 2009-04-13 22:21:32
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: txp:article_custom and pagination
Well, the only way to find out is to try it yourself… I hear different sounds ;)
Offline
Re: txp:article_custom and pagination
Yeah, don’t know, not a resounding consensus for sure. Plus I’m talking sections, not categories, maybe we’ll never know, I haven’t had energy to try this for the sake of it, will post back if I do.
Offline
#11 2009-04-14 00:41:49
- Agogo
- Member
- From: Sthlm, Sweden
- Registered: 2008-11-27
- Posts: 31
Re: txp:article_custom and pagination
I am using chh_article with multiple sections atm. No problems there. So the “limit” function is there.
Offline
Re: txp:article_custom and pagination
Agogo, yes but can you use ob1_pagination with it?
Offline