Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-03 16:41:34

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

archive page with paging

Hi!
I will love to get some help here please.
I’m trying to make an archive page for my news with paging but it’s not working for me
here is my code, what I’m missing please?

<txp:article allowoverride="0" form="news_archive" limit="20" pageby="20" section="news" pgonly="0" status="4" />

I got my “archive” page
my news articles are poblished into “news” section,
and I made a form for the archive “news_archive”,
and I want to show only 20 articles per page limit="20" pageby="20".

and for some reason I got not even one article when I’m viewing my page.

Thanks :)

Offline

#2 2008-04-04 09:22:12

ricetxp
Member
From: London, UK
Registered: 2005-05-24
Posts: 89
Website

Re: archive page with paging

Unfortunately you can’t use the article tag like this. It will only ever display the current section. To set a section for it, you need article_custom, but, as memory serves, you can’t paginate article_custom.

Maybe rss_suparchive might help

Offline

#3 2008-04-05 16:38:29

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

Re: archive page with paging

many thanks!
rss_suparchive works great!!!
:)

but the only think that don’t work is if you put the newer&older links above the rss_suparchive tag they don’t work!
I must put them under the tag, like this:

<txp:rss_suparchive section="news" form="news_archive" limit="20" status="4" allowoverride="0" /> <txp:older><txp:text item="&laquo; older" /></txp:older> &nbsp;|&nbsp; <txp:newer><txp:text item="newer &raquo;" /></txp:newer>

so it’s ok, but it’s limit my design
I want to put the links at the top of the list and at the bottom, so now they are only at the bottom of the list.
but listen it’s better then nothing! so again thanks!

Last edited by THE BLUE DRAGON (2008-04-05 16:46:22)

Offline

Board footer

Powered by FluxBB