Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2015-09-10 11:24:33
- Skogen
- New Member
- Registered: 2015-09-10
- Posts: 3
Search and pagination with list of dates of ALL searched results
Hallo,
I have this problem. My site for searching results is split into pagination (newer/older by 7). But I need to get dates of all found articles on the all pages of searching.
When I use
“<txp:article searchform=“dates” limit=“1000” sort=“Posted desc” />”
… and my searchform name “dates” is “<txp:posted />”
… I get dates of all found articles from various sections only on the first page. On the second and each next page there is nothing…
What to do?
Thanks for help…
Offline
Re: Search and pagination with list of dates of ALL searched results
Hello, welcome to the forum. Try to use
<txp:article_custom form="dates" limit="1000" sort="Posted desc" />
instead.
Offline
#3 2015-09-10 12:24:20
- Skogen
- New Member
- Registered: 2015-09-10
- Posts: 3
Re: Search and pagination with list of dates of ALL searched results
Thanks.
I tried it yet, but It’s not work because article_custom lists all articles, not all searched articles…
Last edited by Skogen (2015-09-10 12:26:29)
Offline
Re: Search and pagination with list of dates of ALL searched results
Ah yes, sorry. You can try to hack, putting this after your main <txp:article />
and immediately before <txp:article searchform="dates" limit="1000" sort="Posted desc" />
:
<txp:php>global $pretext; $pretext['pg']=1;</txp:php>
But a hack is a hack.
Offline
#5 2015-09-10 16:07:10
- Skogen
- New Member
- Registered: 2015-09-10
- Posts: 3
Re: Search and pagination with list of dates of ALL searched results
Wow! Success. Thank you very much for solution :)
Offline
Re: Search and pagination with list of dates of ALL searched results
You are welcome, glad it works. Just add a bold <!— look here if pagination breaks —> :)
Offline