Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-03-16 11:23:40
- davidgordon
- Member
- Registered: 2005-04-10
- Posts: 23
<<previous - next>> for my "archive" page
I have custom archive page where I’m showing all articles posted from all sections. I create this with…
<code>
<div id=“content”>
<txp:article_custom form=“dg-archive-list” limit=“5” />
</div>
</code>
and my form “dg-archive-list”
<code>
<txp:permlink><txp:title /> : <txp:posted /></txp:permlink>
<txp:excerpt />
</code>
which is fine. Now I want to add links to the next and previous five articles from all sections. I’ve tried all the obvious tags but nothing works for me. What sort of thing should I be trying?
Thanks!
Offline
#2 2006-03-16 15:47:37
- rsilletti
- Moderator

- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: <<previous - next>> for my "archive" page
Try
<code>
<div id=“content”>
<txp:article form=“dg-archive-list” limit=“5” />
</div>
</code>
and older/newer tags, which are for lists.
Next/Prev tags are intended to step thru single articles.
Last edited by rsilletti (2006-03-16 15:49:04)
Offline
#3 2006-03-16 16:29:14
- davidgordon
- Member
- Registered: 2005-04-10
- Posts: 23
Re: <<previous - next>> for my "archive" page
Sorry Rick, that gets me a blank page! I thought I was starting to understand the difference between article and article_custom too!
Still stuck :-(
Offline
#4 2006-03-16 18:39:49
- rsilletti
- Moderator

- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: <<previous - next>> for my "archive" page
If you use the tag example above and link to a section, only articles from that section will be shown; sections are that way. article_custom was designed to provide a way around that in a custom circumstance, but it doesn’t generate page statistics for the navigation tags.
On the chance that I am missing something, you might substitute a listform att instead of form, but the blank page sounds like a section behaviour.
Try testing it in your default section?
Offline
#5 2006-03-16 21:06:50
- davidgordon
- Member
- Registered: 2005-04-10
- Posts: 23
Re: <<previous - next>> for my "archive" page
Sounds like I’m trying to do the impossible – as usual…
listform? Is it in the TextBook? Other than here
Thanks!
Offline
#6 2006-03-16 21:21:47
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: <<previous - next>> for my "archive" page
davidgordon wrote:
Sounds like I’m trying to do the impossible – as usual…
You could try a plugin, like ob1_googlenav or rsx_page_number.
listform? Is it in the TextBook? Other than here
That looks like an empty page to me ;) Listform is the attribute for <txp:article /> that says what article form to use for article lists. So for example: <txp:article form="single" listform="yourlistform" /> will use form ‘single’ for individual article display and form ‘yourlistform’ for article lists. It’s in TextBook here.
Offline
#7 2006-03-17 08:15:39
- davidgordon
- Member
- Registered: 2005-04-10
- Posts: 23
Re: <<previous - next>> for my "archive" page
Okay… So, have I boxed myself into a corner here?
I’ve styled my “default” page to show a fancy list of my last five posts from all categories. That means I can’t use it for my full list of posts.
To get all the categories on a page I have to use another “page” so I created a “page” “archive”. But I have to relate that to a section, so my “archive” section uses my “archive” “page”.
So the result is I can use article_custom to get categories other than “archive” listed on my archive page but there’s no data for the “next* and previous pages (which means “ob1_googlenav” won’t work either?).
“article listform=mylistform” doesn’t work on my “archive” page.
So I can’t have a) a fancy “home” page, and b) a separate “archive” list of all posts?
Confused…
Thanks!
Offline
#8 2006-03-17 16:12:50
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: <<previous - next>> for my "archive" page
Yes, you can… ;) It’s just that the pagination tags don’t work with article_custom. But there is a way out: chh_article_custom.
Offline
#9 2006-03-18 18:13:57
- M_i
- Member
- Registered: 2006-03-05
- Posts: 122
Re: <<previous - next>> for my "archive" page
Els wrote:
Yes, you can… ;) It’s just that the pagination tags don’t work with article_custom. But there is a way out: chh_article_custom.
But I thought pagination tags also don’t work with chh_article_custom, only with chh_article.
Offline
#10 2006-03-18 18:28:26
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: <<previous - next>> for my "archive" page
Yes, but isn’t it so that chh_article can be used the way article_custom can? I may be wrong though, in that case sorry for giving you false hope…
Offline
#11 2006-03-18 20:28:42
- davidgordon
- Member
- Registered: 2005-04-10
- Posts: 23
Re: <<previous - next>> for my "archive" page
I think I’ll come back to this when I’m more experienced…
Meanwhile I can do all I really need by using categories. Thanks for all the effort and suggestions though.
Offline
Re: <<previous - next>> for my "archive" page
Bumping this up to see if there is any solution to David’s problem.
The need: A paginated archive page at http://siteurl.com/archive showing all articles (or articles from a particular section, such as Photographs, NOT marked as ‘archive’), where txp:older and txp:newer tags work.
Is there any plugin or other way to make this possible? I’ve tried chh_custom_article and it doesn’t work.
Offline