Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Different Pages For Articles and Search Results
Hi,
I am using a a theme based on Simpla which would seem to use the same page for articles and search results.
On my article page I have two articles showing but this means that only two search results show… how can I either make all results show using the same page or use a different page for search results?
Let me know if any code will help… new to Textpattern and need help :-)
Many many thanks
David Hughes
davidhughes.org
Offline
#2 2007-04-03 13:34:57
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Different Pages For Articles and Search Results
<txp:if_search>
<txp:article limit="99" />
<txp:else />
<txp:article limit="2" />
</txp:if_search>
Or use another section/page: how to.
Last edited by els (2007-04-03 13:35:21)
Offline
Re: Different Pages For Articles and Search Results
Whoa! Instant reply!
Thanks very much indeed.
I’ll try those tonight.
Many thanks,
David Hughes
davidhughes.org
Offline
Re: Different Pages For Articles and Search Results
How would I do the same for category pages?
many thanks
David Hughes
davidhughes.org
Offline
Re: Different Pages For Articles and Search Results
Worked it out… if_category.
Many thanks!
David Hughes
davidhughes.org
Offline
#6 2007-04-03 21:54:57
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Different Pages For Articles and Search Results
Where would be be without conditionals ;)
In case you had not found it yet: Alphabetical Tag Listing.
Offline